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 c1c0dea388 ("Linux: Remove epoll_create,
inotify_init from syscalls.list") and commit d1d23b1342
("Lninux: consolidate epoll_create implementation").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer 2022-12-22 17:22:28 +01:00
parent 9ffeabdf2e
commit 3c66c9600e

View File

@ -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)
{