On 4/29/21 4:46 AM, Colin King wrote: > From: Colin Ian King <colin.king@xxxxxxxxxxxxx> > > Currently the -EINVAL error return path is leaking memory allocated > to data. Fix this by not returning immediately but instead setting > the error return variable to -EINVAL and breaking out of the loop. > > Kudos to Pavel Begunkov for suggesting a correct fix. Applied, thanks. -- Jens Axboe