Thread (6 messages) 6 messages, 4 authors, 2019-09-26

Re: [PATCH][next] io_uring: ensure variable ret is initialized to zero

From: Jens Axboe <axboe@kernel.dk>
Date: 2019-09-26 09:56:35
Also in: kernel-janitors, linux-fsdevel, lkml

On 9/26/19 11:50 AM, Colin King wrote:
From: Colin Ian King <redacted>

In the case where sig is NULL the error variable ret is not initialized
and may contain a garbage value on the final checks to see if ret is
-ERESTARTSYS.  Best to initialize ret to zero before the do loop to
ensure the ret does not accidentially contain -ERESTARTSYS before the
loop.
Oops, weird it didn't complain. I've folded in this fix, as that commit
isn't upstream yet. Thanks!

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help