]> git.baikalelectronics.ru Git - kernel.git/commit
net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()
authorzhanglin <zhang.lin16@zte.com.cn>
Sat, 26 Oct 2019 07:54:16 +0000 (15:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Oct 2019 18:20:10 +0000 (11:20 -0700)
commit4d3e4bb561b6daed8c4764909cd4c90a6444c102
tree1b571abe9e6ab50b7b5708e865b98d9576469f3e
parent96300928083088b030dc6447b65bc3a4c2c8e336
net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()

memset() the structure ethtool_wolinfo that has padded bytes
but the padded bytes have not been zeroed out.

Signed-off-by: zhanglin <zhang.lin16@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c