carl9170: abort tasklet during usb reset
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 17 Sep 2010 20:47:28 +0000 (22:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Sep 2010 15:05:23 +0000 (11:05 -0400)
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>
drivers/net/wireless/ath/carl9170/usb.c

index fde918d..1e7c274 100644 (file)
@@ -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);
 
        /*