From: Christian Lamparter Date: Fri, 17 Sep 2010 20:47:28 +0000 (+0200) Subject: carl9170: abort tasklet during usb reset X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cf6487d0d656994cc43851b8c2384741e220f7ac;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: John W. Linville --- 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); /*