]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1dabffc0ffe8c2dc7b5da69215a212c716b4a44
tree45e343b19e249bff3a367a729a4b69df9703995c
parentb5f05afd94884d31a60bc755e9b11df97d2532be
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