]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: Zero ifla_vf_info in rtnl_fill_vfinfo()
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Wed, 7 Jun 2017 18:00:33 +0000 (21:00 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 5 Jul 2017 16:36:20 +0000 (11:36 -0500)
commitaa6456336c7d33805a190d98b185d98a345d7135
treedf4c53ca43fa36e4903b968848ea4f525a36744b
parent5075d748048f4376df344d09b701682b58be7b32
net: Zero ifla_vf_info in rtnl_fill_vfinfo()

BugLink: http://bugs.launchpad.net/bugs/1702515
[ Upstream commit 0eed9cf58446b28b233388b7f224cbca268b6986 ]

Some of the structure's fields are not initialized by the
rtnetlink. If driver doesn't set those in ndo_get_vf_config(),
they'd leak memory to user.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
CC: Michal Schmidt <mschmidt@redhat.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/core/rtnetlink.c