Re: [PATCH][next][V2] io_uring: Fix premature return from loop and memory leak

From: Jens Axboe
Date: Thu Apr 29 2021 - 10:27:27 EST


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