1
0
Fork 0

io_uring: Fix __io_uring_register() false success

If io_copy_iov() fails, it will break the loop and report success,
albeit partially completed operation.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
hifive-unleashed-5.2
Pavel Begunkov 2019-05-26 12:35:47 +03:00 committed by Jens Axboe
parent 35efb51eee
commit a278682dad
1 changed files with 1 additions and 1 deletions

View File

@ -2616,7 +2616,7 @@ static int io_sqe_buffer_register(struct io_ring_ctx *ctx, void __user *arg,
ret = io_copy_iov(ctx, &iov, arg, i);
if (ret)
break;
goto err;
/*
* Don't impose further limits on the size and buffer