diff --git a/fs/io_uring.c b/fs/io_uring.c index 91e09ee08d946b5b0914f60de2a20c2922806030..fde9ae5c8b4a82783b25f249129180b6c911d438 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3488,6 +3488,7 @@ static int io_sqe_files_register(struct io_ring_ctx *ctx, void __user *arg, if (io_sqe_alloc_file_tables(ctx, nr_tables, nr_args)) { kfree(ctx->file_table); + ctx->file_table = NULL; return -ENOMEM; }