mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
io_uring: Fix __io_uring_register() false success
[ Upstream commit a278682dad ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
84296dc648
commit
fd670f49dd
@@ -2506,7 +2506,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
|
||||
|
||||
Reference in New Issue
Block a user