Skip to content

Commit

Permalink
epoll: fix size check in epoll_create()
Browse files Browse the repository at this point in the history
Fix a size check WRT the manual pages.  This was inadvertently broken by
commit 9fe5ad9 ("flag parameters
add-on: remove epoll_create size param").

Signed-off-by: Davide Libenzi <[email protected]>
Cc: <[email protected]>
Cc: rohit verma <[email protected]>
Cc: Ulrich Drepper <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
davidel authored and torvalds committed May 12, 2009
1 parent ee1ef82 commit bfe3891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ SYSCALL_DEFINE1(epoll_create1, int, flags)

SYSCALL_DEFINE1(epoll_create, int, size)
{
if (size < 0)
if (size <= 0)
return -EINVAL;

return sys_epoll_create1(0);
Expand Down

0 comments on commit bfe3891

Please sign in to comment.