diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-07-11 17:54:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-11 22:52:00 +0200 |
commit | f50cef6f77d08fced02eba7ac7c1cab4972c3786 (patch) | |
tree | 24947099e752bc6645cf73a6e9ab09e2ee605726 /kernel/bpf | |
parent | net: smc91x: ACPI Enable lan91x adapters (diff) | |
download | linux-f50cef6f77d08fced02eba7ac7c1cab4972c3786.tar.xz linux-f50cef6f77d08fced02eba7ac7c1cab4972c3786.zip |
nfp: check idx is -ENOSPC before using it is an index
idx can be returned as -ENOSPC, so we should check for this first
before using it as an index into nn->vxlan_usecnt[] to avoid an
out of bounds array offset read.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions