aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/msg_ring.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2022-11-05 15:02:42 +0000
committerThomas Zimmermann <[email protected]>2022-11-05 15:08:36 +0000
commit8e4e4c2f53ffcb0ef746dc3b87ce1a57c5c94c7d (patch)
treea61fbc998223d50f8b8691b9b9ced38c21072b10 /io_uring/msg_ring.c
parentdrm/ofdrm: Cast error pointers to void __iomem * (diff)
parentMerge tag 'drm-intel-gt-next-2022-11-03' of git://anongit.freedesktop.org/drm... (diff)
downloadkernel-8e4e4c2f53ffcb0ef746dc3b87ce1a57c5c94c7d.tar.gz
kernel-8e4e4c2f53ffcb0ef746dc3b87ce1a57c5c94c7d.zip
Merge drm/drm-next into drm-misc-next
Backmerging drm/drm-next to get the latest changes in the xlnx driver. Signed-off-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'io_uring/msg_ring.c')
-rw-r--r--io_uring/msg_ring.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/msg_ring.c b/io_uring/msg_ring.c
index 4a7e5d030c78..90d2fc6fd80e 100644
--- a/io_uring/msg_ring.c
+++ b/io_uring/msg_ring.c
@@ -95,6 +95,9 @@ static int io_msg_send_fd(struct io_kiocb *req, unsigned int issue_flags)
msg->src_fd = array_index_nospec(msg->src_fd, ctx->nr_user_files);
file_ptr = io_fixed_file_slot(&ctx->file_table, msg->src_fd)->file_ptr;
+ if (!file_ptr)
+ goto out_unlock;
+
src_file = (struct file *) (file_ptr & FFS_MASK);
get_file(src_file);