From: Steve Glendinning Date: Mon, 30 Nov 2009 07:14:45 +0000 (-0800) Subject: smsc9420: prevent BUG() if ethtool is called with interface down X-Git-Tag: v2.6.32~40^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c53b1b15e222244358d3cbbefd2a13920faa352;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed