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 <[email protected]>
> Signed-off-by: Jakub Kicinski <[email protected]>Reviewed-by: Simon Horman <[email protected]>
