commit | f50cef6f77d08fced02eba7ac7c1cab4972c3786 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Mon Jul 11 16:54:20 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 11 13:52:00 2016 -0700 |
tree | 24947099e752bc6645cf73a6e9ab09e2ee605726 | |
parent | 8876d94b410849a20e78c25541ca13664e8fe5c6 [diff] |
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>