提交 cf6487d0 编写于 作者: C Christian Lamparter 提交者: John W. Linville

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: NChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 9adc9e0f
...@@ -367,6 +367,9 @@ static void carl9170_usb_tasklet(unsigned long data) ...@@ -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);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册