diff --git a/fs/io_uring.c b/fs/io_uring.c index e64fa2b24a81b69b41c1f35de3b6991f6900c019..dd7bf7dbbc0e3c872a39e61cb8c77f7ae4959f3a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3072,7 +3072,7 @@ static int io_sendmsg(struct io_kiocb *req, struct io_kiocb **nxt, if (req->io) return -EAGAIN; if (io_alloc_async_ctx(req)) { - if (kmsg && kmsg->iov != kmsg->fast_iov) + if (kmsg->iov != kmsg->fast_iov) kfree(kmsg->iov); return -ENOMEM; } @@ -3226,7 +3226,7 @@ static int io_recvmsg(struct io_kiocb *req, struct io_kiocb **nxt, if (req->io) return -EAGAIN; if (io_alloc_async_ctx(req)) { - if (kmsg && kmsg->iov != kmsg->fast_iov) + if (kmsg->iov != kmsg->fast_iov) kfree(kmsg->iov); return -ENOMEM; }