]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Ath5k: kill tasklets on shutdown
authorJiri Slaby <jirislaby@gmail.com>
Tue, 15 Jul 2008 15:44:19 +0000 (17:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:36:26 +0000 (16:36 -0400)
Don't forget to kill tasklets on stop to not panic if they
fire after freeing some structures.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c

index ed51c4a69d430933462695b3c3bea62284fe7477..c5bf8a2ef5cd14d82b1cbf77622b5722764b0d25 100644 (file)
@@ -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;
 }