diff --git a/fs/io_uring.c b/fs/io_uring.c index 4f0e8b2e4b1862309a7be06ebf47a9d95c44d890..ebcf25a68395537f28de5541a959c381e3a015b0 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2412,6 +2412,7 @@ static int io_queue_link_head(struct io_ring_ctx *ctx, struct io_kiocb *req, if (ret) { if (ret != -EIOCBQUEUED) { io_free_req(req); + __io_free_req(shadow); io_cqring_add_event(ctx, s->sqe->user_data, ret); return 0; }