diff --git a/fs/io_uring.c b/fs/io_uring.c index d1715bafe4e7582eb9fa030f9487b7d53bcafd66..2434ea5aa283c0f9a3488d914cd4e5378e9089b4 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -7446,7 +7446,7 @@ static void io_uring_cancel_files(struct io_ring_ctx *ctx, * all we had, then we're done with this request. */ if (refcount_sub_and_test(2, &cancel_req->refs)) { - io_put_req(cancel_req); + io_free_req(cancel_req); finish_wait(&ctx->inflight_wait, &wait); continue; }