Skip to content

Commit

Permalink
carl9170: abort tasklet during usb reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Sep 21, 2010
1 parent 9adc9e0 commit cf6487d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/carl9170/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit cf6487d

Please sign in to comment.