aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/.gitignore
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-26 19:50:00 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-02-01 11:22:51 +0100
commite029f541039ff0768960ede62b946bcf4a163dec (patch)
treefb307180cdbf3d5b7e73aae639b8eef7a4aa08c0 /tools/testing/selftests/bpf/.gitignore
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (diff)
downloadlinux-dev-e029f541039ff0768960ede62b946bcf4a163dec.tar.xz
linux-dev-e029f541039ff0768960ede62b946bcf4a163dec.zip
netdevsim: fix overflow on the error path
Undo loop condition on the error path would cause the i counter to go below zero, if allocation failure happened with the first (i.e. 0th) element of the array. Fixes: 395cacb5f1a0 ("netdevsim: bpf: support fake map offload") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/.gitignore')
0 files changed, 0 insertions, 0 deletions