summaryrefslogtreecommitdiff
path: root/io_uring/eventfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'io_uring/eventfd.c')
-rw-r--r--io_uring/eventfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/eventfd.c b/io_uring/eventfd.c
index 0120ecd97321..cbea1c289485 100644
--- a/io_uring/eventfd.c
+++ b/io_uring/eventfd.c
@@ -127,7 +127,7 @@ int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg,
if (copy_from_user(&fd, fds, sizeof(*fds)))
return -EFAULT;
- ev_fd = kmalloc_obj(*ev_fd, GFP_KERNEL);
+ ev_fd = kmalloc_obj(*ev_fd);
if (!ev_fd)
return -ENOMEM;