mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 06:20:02 +02:00
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:
|
||
|---|---|---|
| .. | ||
| 3945-debug.c | ||
| 3945-mac.c | ||
| 3945-rs.c | ||
| 3945.c | ||
| 3945.h | ||
| 4965-calib.c | ||
| 4965-debug.c | ||
| 4965-mac.c | ||
| 4965-rs.c | ||
| 4965.c | ||
| 4965.h | ||
| commands.h | ||
| common.c | ||
| common.h | ||
| csr.h | ||
| debug.c | ||
| iwl-spectrum.h | ||
| Kconfig | ||
| Makefile | ||
| prph.h | ||