ath5k: disable irq handling in ath5k_hw_detach()
authorPavel Roskin <proski@gnu.org>
Wed, 12 Mar 2008 20:13:31 +0000 (16:13 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2008 19:57:25 +0000 (15:57 -0400)
commitf50e4a8494a74bdbc0f86f1430a4cca2a4f28799
tree8e8198f8eec78a56deb4e699d6107d9a0a58abec
parent5abdc49d6e521126ed4c15e913a5c30f6dd95e6b
ath5k: disable irq handling in ath5k_hw_detach()

Once ah has been freed, it may not be accessed.  Set ATH_STAT_INVALID
bit to make the interrupt handler return IRQ_NONE without accessing ah.

This fixes oops on unload with CONFIG_DEBUG_SHIRQ enabled.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/hw.c