]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:38 +0000 (18:47 +0100)
commit1faced919debbbb40eb053a3810a9427363eb673
treede5ec11f7a88032f8f5947eac737d67d29292f81
parent036a93f34f8a9e6cbc2ce18726b6a3fc42316b5e
net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()

BugLink: https://bugs.launchpad.net/bugs/1852111
[ Upstream commit 5ff223e86f5addbfae26419cbb5d61d98f6fbf7d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/core/ethtool.c