On Fri, Jan 26, 2018 at 07:50:00PM -0800, Jakub Kicinski wrote: > 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.carpen...@oracle.com> > Signed-off-by: Jakub Kicinski <jakub.kicin...@netronome.com>
Reviewed-by: Simon Horman <simon.hor...@netronome.com>