diff options
author | Mintz, Yuval <Yuval.Mintz@cavium.com> | 2017-06-07 21:00:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-05 14:37:13 +0200 |
commit | e2c3ee003280ce0e6cd02f305dd6c1ced17f286c (patch) | |
tree | 2695cacc05a5495a7fb59a63a3321803d4bad49d /net/unix/af_unix.c | |
parent | dedb088a1d189961285d603257dfe5c3a9fb37aa (diff) |
net: Zero ifla_vf_info in rtnl_fill_vfinfo()
[ 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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions