diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2017-03-03 17:08:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-07 13:47:15 -0800 |
commit | 22118d861cec5da6ed525aaf12a3de9bfeffc58f (patch) | |
tree | 229ab2058dae31cd20c3c8e27906f1ea583a360e /lib/once.c | |
parent | 850268d320f0c7c5eb7ad0a62ef21859fa331ded (diff) |
bnx2x: fix possible overrun of VFPF multicast addresses array
It is too late to check for the limit of the number of VF multicast
addresses after they have already been copied to the req->multicast[]
array, possibly overflowing it.
Do the check before copying.
Also fix the error path to not skip unlocking vf2pf_mutex.
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/once.c')
0 files changed, 0 insertions, 0 deletions