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: 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>
2018-02-01 11:22:51 +01:00
..
2018-01-31 11:52:20 -08:00
2017-11-14 16:54:12 -08:00
2018-01-31 11:52:20 -08:00
2017-11-16 09:10:59 -08:00
2018-01-31 12:54:05 -08:00
2017-11-17 20:16:20 -08:00
2018-01-30 13:57:43 -08:00
2017-11-13 01:34:14 +01:00
2018-01-15 09:35:53 +01:00
2018-01-30 13:57:43 -08:00
2018-01-31 12:22:41 -08:00
2018-01-29 11:35:24 -08:00
2018-01-31 11:32:27 -08:00
2018-01-31 11:32:27 -08:00
2018-01-09 14:19:41 +01:00
2017-11-16 09:10:59 -08:00
2017-12-16 02:59:45 +01:00
2017-11-22 21:09:18 -10:00
2017-11-17 20:14:10 -08:00
2017-11-16 16:05:01 -08:00
2017-11-14 16:54:12 -08:00
2017-11-27 16:19:54 -05:00
2018-01-29 16:37:15 -08:00
2017-12-14 21:01:40 +02:00
2017-11-16 09:10:59 -08:00
2018-01-31 11:32:27 -08:00