]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fix uninitalized ethtool_wolinfo in phy_suspend
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Fri, 14 Mar 2014 09:07:44 +0000 (10:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Mar 2014 02:38:54 +0000 (22:38 -0400)
commita0db17b66566762e31f3464934de0450a050c3c5
tree5ffde54cb5f9c23de3b81f8afd37aec09885c248
parent1b73c8e91a4eb3a8b096f8689d930491815149f6
net: phy: fix uninitalized ethtool_wolinfo in phy_suspend

Callers of phy_ethtool_get_wol are supposed to provide a properly
cleared struct ethtool_wolinfo. Therefore, fix phy_suspend to clear
it before passing it to phy_ethtool_get_wol.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c