diff --git a/fs/io_uring.c b/fs/io_uring.c index 2b0995ab8998cb5c67dbe9f24aaabe857c9fd517..7c3d8208eef89e110455f8716390ae1c3f5ab6da 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; }