From: Breno Leitao Date: Sat, 19 Dec 2009 04:29:04 +0000 (-0800) Subject: bnx2: reset_task is crashing the kernel. Fixing it. X-Git-Tag: v2.6.33-rc2~40^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4529819c45161e4a119134f56ef504e69420bc98;p=pandora-kernel.git 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 Acked-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed