linux/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.h netdevsim: don't compile BPF code if syscall not enabled 2018-01-23 20:24:31 -05:00