linux/drivers/net/wireless/intel/iwlegacy
Guangshuo Li f8ebe28639 wifi: iwlegacy: 3945: free EEPROM data on remove
il3945_pci_probe() calls il_eeprom_init(), which allocates memory for
the EEPROM data. The probe failure paths release this allocation with
il_eeprom_free(), but the remove path does not free it after a
successful probe.

As a result, the EEPROM data is leaked when the PCI device is removed.

Free the EEPROM data in il3945_pci_remove() before releasing the
mac80211 hardware structure.

This issue was found by manual code inspection.

Fixes: 073d3f5f1b ("iwlwifi: changing EEPROM layout handling")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20260916073736.2952028-1-lgs201920130244@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-21 14:37:56 +02:00
..
3945-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
3945-mac.c wifi: iwlegacy: 3945: free EEPROM data on remove 2026-09-21 14:37:56 +02:00
3945-rs.c wifi: iwlegacy: 3945-rs: remove redundant pointer check in il3945_rs_tx_status() and il3945_rs_get_rate() 2026-01-12 19:42:49 +01:00
3945.c Revert "wifi: iwlegacy: do not skip frames with bad FCS" 2024-11-12 20:24:45 +02:00
3945.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
4965-calib.c iwlegacy: 4965-calib: Demote seemingly accidental kernel-doc header 2020-09-01 12:22:42 +03:00
4965-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
4965-mac.c wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
4965-rs.c wifi: iwlegacy: work around excessive stack usage on clang/kasan 2025-06-24 09:04:42 +02:00
4965.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
4965.h wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
commands.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
common.c wifi: iwlegacy: fix broadcast stations deallocation 2026-09-04 10:06:03 +02:00
common.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2026-03-02 09:22:30 +01:00
csr.h
debug.c wifi: iwlegacy: replace BUG_ON() with WARN_ON() on num_stations check 2026-07-28 15:35:37 +02:00
iwl-spectrum.h wifi: iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings 2025-09-03 10:06:41 +02:00
Kconfig iwlwifi: fix LED dependencies 2021-12-08 20:17:06 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
prph.h