]> git.baikalelectronics.ru Git - kernel.git/commit
net: 3com: typhoon: fix typhoon_get_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 6 Nov 2016 14:02:32 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 18:25:14 +0000 (13:25 -0500)
commit3db5ed6323026216fe3a86e40bd9524f945ab181
treebf59a5ec1224e28f8e315e1abb856d00a5faba14
parent56717d98bfb9e963cef0451bfb4d2a71bc50fe61
net: 3com: typhoon: fix typhoon_get_link_ksettings

When moving from typhoon_get_settings to typhoon_getlink_ksettings
in the commit b07b3700a9eb ("net: 3com: typhoon: use new api
ethtool_{get|set}_link_ksettings"), we use a local variable supported
but we forgot to update the struct ethtool_link_ksettings with
this value.

We also initialize advertising to zero, because otherwise it may
be uninitialized if no case of the switch (tp->xcvr_select) is used.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/typhoon.c