diff --git a/io_uring/net.c b/io_uring/net.c index f76b688f476e71d839dbc1fe7fc2fa39b1930f32..fbc34a7c2743946c7fbabd91513489c8e25a0b25 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -820,10 +820,10 @@ int io_recvmsg(struct io_kiocb *req, unsigned int issue_flags) goto retry_multishot; if (mshot_finished) { - io_netmsg_recycle(req, issue_flags); /* fast path, check for non-NULL to avoid function call */ if (kmsg->free_iov) kfree(kmsg->free_iov); + io_netmsg_recycle(req, issue_flags); req->flags &= ~REQ_F_NEED_CLEANUP; }