[lkml]   [2021]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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 <>
> 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

 \ /
  Last update: 2021-04-29 16:28    [W:0.030 / U:3.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site