From: Vladislav Zolotarov Date: Tue, 2 Aug 2011 08:35:43 +0000 (-0700) Subject: bnx2x: Prevent restarting Tx during bnx2x_nic_unload X-Git-Tag: v3.1-rc1~24^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b7ba3d24a25cf18aece447de27d7804fa9668c;p=pandora-kernel.git bnx2x: Prevent restarting Tx during bnx2x_nic_unload Tx queues were stopped before bp->state was changed to a value different from BNX2X_STATE_OPEN, which allowed the bnx2x_tx_int() called from the NAPI context to re-enable it. This then allowed the netdev->ndo_start_xmit() to be called in the middle of the function reset and rings freeing. This patch changes bp->state to a value different from BNX2X_STATE_OPEN BEFORE disabling the Tx queues in order to restore the broken protection against the above race in the bnx2x_tx_int(). Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed