-
- Downloads
ath9k: fix access to freed data on unload
Calling ath_bus_cleanup() after ieee80211_free_hw() resulted in access to common->bus_ops, which is already freed as part of the device data. Remove the cleanup field in struct ath_bus_ops, as it was never used properly. Remove ath_bus_cleanup(). Merge cleanup functions in place of the ath_bus_cleanup() calls. Take care not to use any device data after ieee80211_free_hw(). Signed-off-by:Pavel Roskin <proski@gnu.org> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- drivers/net/wireless/ath/ath.h 0 additions, 1 deletiondrivers/net/wireless/ath/ath.h
- drivers/net/wireless/ath/ath9k/ahb.c 2 additions, 10 deletionsdrivers/net/wireless/ath/ath9k/ahb.c
- drivers/net/wireless/ath/ath9k/ath9k.h 0 additions, 5 deletionsdrivers/net/wireless/ath/ath9k/ath9k.h
- drivers/net/wireless/ath/ath9k/pci.c 5 additions, 13 deletionsdrivers/net/wireless/ath/ath9k/pci.c
Loading
Please register or sign in to comment