commit | 0eed9cf58446b28b233388b7f224cbca268b6986 | [log] [tgz] |
---|---|---|
author | Mintz, Yuval <Yuval.Mintz@cavium.com> | Wed Jun 07 21:00:33 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 08 10:58:02 2017 -0400 |
tree | ee130169c37ed56a1be14d4f76f5d677f92d655b | |
parent | dd0da17b209ed91f39872766634ca967c170ada1 [diff] |
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>