Messages in this thread | | | Subject | Re: [PATCH][next][V2] io_uring: Fix premature return from loop and memory leak | From | Jens Axboe <> | Date | Thu, 29 Apr 2021 08:27:20 -0600 |
| |
On 4/29/21 4:46 AM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > 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
| |