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>
This commit is contained in:
parent
9adc9e0ff3
commit
cf6487d0d6
|
@ -367,6 +367,9 @@ static void carl9170_usb_tasklet(unsigned long data)
|
||||||
{
|
{
|
||||||
struct ar9170 *ar = (struct ar9170 *) data;
|
struct ar9170 *ar = (struct ar9170 *) data;
|
||||||
|
|
||||||
|
if (!IS_INITIALIZED(ar))
|
||||||
|
return;
|
||||||
|
|
||||||
carl9170_usb_rx_work(ar);
|
carl9170_usb_rx_work(ar);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue