From 3c66c9600e285a42f042dd596859664b1d1372a7 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Thu, 22 Dec 2022 17:22:28 +0100
Subject: Linux: Pass size argument of epoll_create to the kernel

The kernel actually verifies it, and a garbage value in the register
causes improper system call failures.

Fixes commit c1c0dea38833751f36a145c32 ("Linux: Remove epoll_create,
inotify_init from syscalls.list") and commit d1d23b134244d59c4d6ef2295
("Lninux: consolidate epoll_create implementation").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
---
 sysdeps/unix/sysv/linux/epoll_create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sysdeps/unix/sysv/linux/epoll_create.c')

diff --git a/sysdeps/unix/sysv/linux/epoll_create.c b/sysdeps/unix/sysv/linux/epoll_create.c
index afb1921637..cb6a67e602 100644
--- a/sysdeps/unix/sysv/linux/epoll_create.c
+++ b/sysdeps/unix/sysv/linux/epoll_create.c
@@ -25,7 +25,7 @@ int
 epoll_create (int size)
 {
 #ifdef __NR_epoll_create
-  return INLINE_SYSCALL_CALL (epoll_create);
+  return INLINE_SYSCALL_CALL (epoll_create, size);
 #else
   if (size <= 0)
     {
-- 
cgit v1.2.3-70-g09d2