linux/drivers/net/wireless/intel
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
..
ipw2x00 wifi: libipw: reject TKIP frames without a full MIC 2026-09-14 14:48:20 +02:00
iwlegacy wifi: iwlegacy: 3945: free EEPROM data on remove 2026-09-21 14:37:56 +02:00
iwlwifi treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig
Makefile