From: Valentine Barshak Date: Mon, 5 Oct 2009 03:27:56 +0000 (+0000) Subject: pasemi_mac: ethtool get settings fix X-Git-Tag: v2.6.32-rc4~35^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49682864b0270a0578b8321ed2686dc471ec37f1;p=pandora-kernel.git pasemi_mac: ethtool get settings fix Not all pasemi mac interfaces can have a phy attached. For example, XAUI has no phy and phydev is NULL for it. In this case ethtool get settings causes kernel crash. Fix it by returning -EOPNOTSUPP if there's no PHY attached. Signed-off-by: Valentine Barshak Acked-by: Olof Johansson Signed-off-by: David S. Miller --- Reading git-diff-tree failed