diff --git a/fs/io_uring.c b/fs/io_uring.c index 1e047f6d8cd67003ae0b32e0972bcd5d37acd7da..7cd30628fa0b37d4e1950e62ba3e6b5d6c042d11 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1839,6 +1839,7 @@ static int io_read(struct io_kiocb *req, struct io_kiocb **nxt, if (!force_nonblock) req->rw.kiocb.ki_flags &= ~IOCB_NOWAIT; + req->result = 0; io_size = ret; if (req->flags & REQ_F_LINK) req->result = io_size; @@ -1926,6 +1927,7 @@ static int io_write(struct io_kiocb *req, struct io_kiocb **nxt, if (!force_nonblock) req->rw.kiocb.ki_flags &= ~IOCB_NOWAIT; + req->result = 0; io_size = ret; if (req->flags & REQ_F_LINK) req->result = io_size;