]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: reset_task is crashing the kernel. Fixing it.
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Sat, 19 Dec 2009 04:29:04 +0000 (20:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2009 04:29:04 +0000 (20:29 -0800)
commit1a40e2d9dae6cd1ee335d3bba73106bca4da6fe9
tree92b1cefb34ff9693a2c611c41986ce56bf0ace99
parent84951eb9201ad78eb94be588b3231d8bdb88f7e5
bnx2: reset_task is crashing the kernel. Fixing it.

If bnx2 schedules a reset via the reset_task, e.g., due to a TX
timeout, it's possible for the NIC to be disabled with packets
pending for transmit.  In this case, napi_disable will loop forever,
eventually crashing the kernel.  This patch moves the disable of
the device to after the napi_disable call.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c