[PATCH] pasemi_mac: ethtool get settings fix

David Miller davem at davemloft.net
Wed Oct 7 21:43:09 EST 2009


From: Olof Johansson <olof at lixom.net>
Date: Tue, 6 Oct 2009 11:10:54 -0500

> Weird, I see my address in the to: line but I never got a copy in my inbox.
> 
> On Mon, Oct 05, 2009 at 05:27:56PM +0400, Valentine Barshak wrote:
>> 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 <vbarshak at ru.mvista.com>
> 
> Acked-by: Olof Johansson <olof at lixom.net>

Applied to net-2.6, thanks!


More information about the Linuxppc-dev mailing list