ath9k_htc: fix race conditions when stop device
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 25 Jan 2011 13:15:12 +0000 (14:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Jan 2011 21:41:10 +0000 (16:41 -0500)
commitea888357ec005abffb95acee2e61aac68dff429c
tree45e343b19e249bff3a367a729a4b69df9703995c
parent203043f579ece44bb30291442cd56332651dd37d
ath9k_htc: fix race conditions when stop device

We do not kill any scheduled tasklets when stopping device, that may
cause usage of resources after free. Disable interrupts, kill tasklets
and then works in correct order.

Cc: stable@kernel.org
Tested-by: Sujith <m.sujith@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c