From: Pavel Roskin Date: Sun, 31 Jan 2010 02:37:24 +0000 (-0500) Subject: ath9k: fix access to freed data on unload X-Git-Tag: v2.6.34-rc1~233^2~421^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab5132a26236e308c6d3d832a3e04fca351656d8;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed