]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Ath5k: kill tasklets on shutdown
authorJiri Slaby <jirislaby@gmail.com>
Mon, 4 Aug 2008 09:37:08 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Aug 2008 16:03:25 +0000 (09:03 -0700)
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 <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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath5k/base.c

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