[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8513d853-fd44-c90f-26ba-45b763b8879a@kernel.dk>
Date: Thu, 29 Apr 2021 08:27:20 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Colin King <colin.king@...onical.com>,
Pavel Begunkov <asml.silence@...il.com>,
io-uring@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next][V2] io_uring: Fix premature return from loop and
memory leak
On 4/29/21 4:46 AM, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.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
Powered by blists - more mailing lists