From: Jiri Slaby Date: Mon, 4 Aug 2008 09:37:08 +0000 (+0200) Subject: Ath5k: kill tasklets on shutdown X-Git-Tag: v2.6.26.2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8256c73d4fab8b3b019b7a21974252854d6deb68;p=karo-tx-linux.git Ath5k: kill tasklets on shutdown commit 10488f8ad62be3b860bad74e60b4fe6ab87aece3 upstream Don't forget to kill tasklets on stop to not panic if they fire after freeing some structures. Signed-off-by: Jiri Slaby Acked-by: Nick Kossifidis Cc: Luis R. Rodriguez Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index d7037391bb9a..bc3ea097f2a7 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c @@ -2453,6 +2453,9 @@ ath5k_stop_hw(struct ath5k_softc *sc) mutex_unlock(&sc->lock); del_timer_sync(&sc->calib_tim); + tasklet_kill(&sc->rxtq); + tasklet_kill(&sc->txtq); + tasklet_kill(&sc->restq); return ret; }