diff options
author | 2021-11-11 08:23:11 +0100 | |
---|---|---|
committer | 2021-11-22 20:39:16 +0200 | |
commit | a571bc28326d9f3e13f5f2d9cda2883e0631b0ce (patch) | |
tree | ec4a9f0151ed9071b0cb4013a745875a92c059d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iwlwifi: fix warnings produced by kernel debug options (diff) | |
download | linux-dev-a571bc28326d9f3e13f5f2d9cda2883e0631b0ce.tar.xz linux-dev-a571bc28326d9f3e13f5f2d9cda2883e0631b0ce.zip |
iwlwifi: Fix memory leaks in error handling path
Should an error occur (invalid TLV len or memory allocation failure), the
memory already allocated in 'reduce_power_data' should be freed before
returning, otherwise it is leaking.
Fixes: 9dad325f9d57 ("iwlwifi: support loading the reduced power table from UEFI")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1504cd7d842d13ddb8244e18004523128d5c9523.1636615284.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions