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)
commit5ff223e86f5addbfae26419cbb5d61d98f6fbf7d
tree1b571abe9e6ab50b7b5708e865b98d9576469f3e
parent7c3bebc3d8688b84795c11848c314a2fbfe045e0
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