1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/fw
Christophe JAILLET a571bc2832 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: 9dad325f9d ("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
2021-11-22 20:39:16 +02:00
..
api Core: 2021-11-02 06:20:58 -07:00
acpi.c iwlwifi: rename GEO_TX_POWER_LIMIT to PER_CHAIN_LIMIT_OFFSET_CMD 2021-10-28 12:04:11 +03:00
acpi.h iwlwifi: mvm: read 6E enablement flags from DSM and pass to FW 2021-10-28 12:04:10 +03:00
dbg.c iwlwifi: fw dump: add infrastructure for dump scrubbing 2021-10-22 10:48:59 +03:00
dbg.h iwlwifi: prepare for synchronous error dumps 2021-08-26 23:32:21 +03:00
debugfs.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
dump.c iwlwifi: remove redundant iwl_finish_nic_init() argument 2021-10-22 10:49:02 +03:00
error-dump.h iwlwifi: Add support for getting rf id with blank otp 2021-10-22 10:40:57 +03:00
file.h iwlwifi: mvm: update RFI TLV 2021-10-28 12:04:11 +03:00
img.c iwlwifi: fix fw/img.c license statement 2021-10-22 10:48:59 +03:00
img.h iwlwifi: parse debug exclude data from firmware file 2021-10-22 10:49:00 +03:00
init.c iwlwifi: fw dump: add infrastructure for dump scrubbing 2021-10-22 10:48:59 +03:00
notif-wait.c iwlwifi: fw: fix notification wait locking 2021-04-06 13:25:59 +03:00
notif-wait.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
paging.c iwlwifi: fw dump: add infrastructure for dump scrubbing 2021-10-22 10:48:59 +03:00
pnvm.c iwlwifi: pnvm: print out the version properly 2021-10-22 10:54:18 +03:00
pnvm.h iwlwifi: move get pnvm file name to a separate function 2021-08-26 23:38:16 +03:00
rs.c iwlwifi: mvm: Support version 3 of tlc_update_notif. 2021-10-22 10:49:00 +03:00
runtime.h iwlwifi: ACPI: support revision 3 WGDS tables 2021-10-28 12:04:09 +03:00
smem.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
uefi.c iwlwifi: Fix memory leaks in error handling path 2021-11-22 20:39:16 +02:00
uefi.h iwlwifi: fw: uefi: add missing include guards 2021-10-28 12:04:10 +03:00