]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Prevent ethtool -s from crashing when device is down.
authorMichael Chan <mchan@broadcom.com>
Tue, 15 Jul 2008 05:37:21 +0000 (22:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 05:37:21 +0000 (22:37 -0700)
commit9162cd11fe717160f1289e394d167cb772ee0f84
tree1277536d725fe38f59b23e5f578d3b3924f79aeb
parenta057a845208725c923e22a026a08f6c67fe1b364
bnx2: Prevent ethtool -s from crashing when device is down.

The device may be in D3-hot state and may crash if we try to
configure the speed settings by accessing the registers.

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