diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-11 08:23:11 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-11-22 20:39:16 +0200 |
commit | a571bc28326d9f3e13f5f2d9cda2883e0631b0ce (patch) | |
tree | ec4a9f0151ed9071b0cb4013a745875a92c059d8 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | f5cecf1d4c5ff76172928bc32e99ca56a5ca2f56 (diff) |
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/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions