aboutsummaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 0fbb486a320e..86a2bd721900 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2777,8 +2777,10 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx)
2777 io_eventfd_unregister(ctx); 2777 io_eventfd_unregister(ctx);
2778 2778
2779#if defined(CONFIG_UNIX) 2779#if defined(CONFIG_UNIX)
2780 if (ctx->ring_sock) 2780 if (ctx->ring_sock) {
2781 ctx->ring_sock->file = NULL; /* so that iput() is called */
2781 sock_release(ctx->ring_sock); 2782 sock_release(ctx->ring_sock);
2783 }
2782#endif 2784#endif
2783 2785
2784 io_mem_free(ctx->sq_ring); 2786 io_mem_free(ctx->sq_ring);