From: Pavel Roskin Date: Wed, 12 Mar 2008 20:13:31 +0000 (-0400) Subject: ath5k: disable irq handling in ath5k_hw_detach() X-Git-Tag: upstream/snapshot3+hdmi~26461^2~104^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f50e4a8494a74bdbc0f86f1430a4cca2a4f28799;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Nick Kossifidis Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath5k/hw.c b/drivers/net/wireless/ath5k/hw.c index c2de2d9..0175743 100644 --- a/drivers/net/wireless/ath5k/hw.c +++ b/drivers/net/wireless/ath5k/hw.c @@ -427,6 +427,8 @@ void ath5k_hw_detach(struct ath5k_hw *ah) { ATH5K_TRACE(ah->ah_sc); + __set_bit(ATH_STAT_INVALID, ah->ah_sc->status); + if (ah->ah_rf_banks != NULL) kfree(ah->ah_rf_banks);