]> git.karo-electronics.de Git - karo-tx-linux.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 14:58:02 +0000 (10:58 -0400)
commit0eed9cf58446b28b233388b7f224cbca268b6986
treeee130169c37ed56a1be14d4f76f5d677f92d655b
parentdd0da17b209ed91f39872766634ca967c170ada1
net: Zero ifla_vf_info in rtnl_fill_vfinfo()

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>
net/core/rtnetlink.c