summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2010-09-17 22:47:28 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 11:05:23 -0400
commitcf6487d0d656994cc43851b8c2384741e220f7ac (patch)
tree980ca060b728490b3d0ab7a13aeb05af31d07dba /drivers
parent9adc9e0ff397fb2d4f383cc2d399b18adc32e6eb (diff)
carl9170: abort tasklet during usb reset
This patch prevents the tasklet code from interfering while the firmware is down for an unscheduled maintenance. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/carl9170/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c
index fde918d0120b..1e7c2748d85a 100644
--- a/drivers/net/wireless/ath/carl9170/usb.c
+++ b/drivers/net/wireless/ath/carl9170/usb.c
@@ -367,6 +367,9 @@ static void carl9170_usb_tasklet(unsigned long data)
{
struct ar9170 *ar = (struct ar9170 *) data;
+ if (!IS_INITIALIZED(ar))
+ return;
+
carl9170_usb_rx_work(ar);
/*