diff --git a/fs/io_uring.c b/fs/io_uring.c index 62a73623601dfd643a51256a128ec4057eddd192..3229b34e0fe09a87ca4e7216ffe04ed53f4dc05e 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2609,7 +2609,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