diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-11-30 08:14:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-30 08:14:45 +0100 |
commit | 6c53b1b15e222244358d3cbbefd2a13920faa352 (patch) | |
tree | 365c523513c54ab2b4eed1ca710fa007b8f84cce /lib | |
parent | r8169: restore mac addr in rtl8169_remove_one and rtl_shutdown (diff) | |
download | linux-6c53b1b15e222244358d3cbbefd2a13920faa352.tar.xz linux-6c53b1b15e222244358d3cbbefd2a13920faa352.zip |
smsc9420: prevent BUG() if ethtool is called with interface down
This patch fixes a null pointer dereference BUG() if ethtool is used on
an smsc9420 interface while it is down, because the phy_dev is only
allocated while the interface is up.
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions