mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
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 commitc1c0dea388
("Linux: Remove epoll_create, inotify_init from syscalls.list") and commitd1d23b1342
("Lninux: consolidate epoll_create implementation"). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
9ffeabdf2e
commit
3c66c9600e
@ -25,7 +25,7 @@ int
|
|||||||
epoll_create (int size)
|
epoll_create (int size)
|
||||||
{
|
{
|
||||||
#ifdef __NR_epoll_create
|
#ifdef __NR_epoll_create
|
||||||
return INLINE_SYSCALL_CALL (epoll_create);
|
return INLINE_SYSCALL_CALL (epoll_create, size);
|
||||||
#else
|
#else
|
||||||
if (size <= 0)
|
if (size <= 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user