linux_dsm_epyc7002/drivers/net/netdevsim
Jakub Kicinski e029f54103 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: 395cacb5f1 ("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>
2018-02-01 11:22:51 +01:00
..
bpf.c netdevsim: fix overflow on the error path 2018-02-01 11:22:51 +01:00
Makefile netdevsim: don't compile BPF code if syscall not enabled 2018-01-23 20:24:31 -05:00
netdev.c netdevsim: correctly check return value of debugfs_create_dir 2017-12-20 13:58:48 -05:00
netdevsim.h netdevsim: don't compile BPF code if syscall not enabled 2018-01-23 20:24:31 -05:00