]> 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)
commitc4860d01169fecd5669e86e90c204f64fd110035
tree1b571abe9e6ab50b7b5708e865b98d9576469f3e
parente330a37d03872b4c84cb6bababcd96166817ad44
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