Files
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: [email protected]
Signed-off-by: Guangshuo Li <[email protected]>
Acked-by: Stanislaw Gruszka <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
2026-09-21 14:37:56 +02:00
..
…
…