bnx2: Check if_running() before touching chip registers.
authorMichael Chan <mchan@broadcom.com>
Fri, 21 Aug 2009 16:20:44 +0000 (16:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Aug 2009 00:48:42 +0000 (17:48 -0700)
commit3767546cc24de8f104e745d59a0a43a09d9267df
tree91b6b1e9da1be490c5f632065b12b6aa19bb3041
parent155d5561f570c5b3af7a178670061927d89209fb
bnx2: Check if_running() before touching chip registers.

Add this check to bnx2_netif_stop() and bnx2_vlan_rx_register() to
prevent bus lockups on some systems when the chip is in low power state.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c