mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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 <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>
This commit is contained in:
parent
3a0f2c8718
commit
10488f8ad6
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue