From: Jiri Slaby Date: Tue, 15 Jul 2008 15:44:19 +0000 (+0200) Subject: Ath5k: kill tasklets on shutdown X-Git-Tag: v2.6.27-rc2~119^2~6^2~38 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=10488f8ad62be3b860bad74e60b4fe6ab87aece3;p=linux-2.6-omap-h63xx.git Ath5k: kill tasklets on shutdown 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 --- diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index ed51c4a69d4..c5bf8a2ef5c 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c @@ -2342,6 +2342,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; }