aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-07-11 15:54:20 +0000
committerDavid S. Miller <[email protected]>2016-07-11 20:52:00 +0000
commitf50cef6f77d08fced02eba7ac7c1cab4972c3786 (patch)
tree24947099e752bc6645cf73a6e9ab09e2ee605726 /net/switchdev/switchdev.c
parentnet: smc91x: ACPI Enable lan91x adapters (diff)
downloadkernel-f50cef6f77d08fced02eba7ac7c1cab4972c3786.tar.gz
kernel-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 <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions