aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Libenzi <[email protected]>2009-05-12 13:19:44 -0700
committerLinus Torvalds <[email protected]>2009-05-12 14:11:35 -0700
commitbfe3891a5f5d3b78146a45f40e435d14f5ae39dd (patch)
tree96e55f37ddf575c20f98bcdfa0902eacdab89978
parentee1ef82c7e6d073f881952348960bbc639687482 (diff)
epoll: fix size check in epoll_create()
Fix a size check WRT the manual pages. This was inadvertently broken by commit 9fe5ad9c8cef9ad5873d8ee55d1cf00d9b607df0 ("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]>
-rw-r--r--fs/eventpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index a89f370fadb5..5458e80fc558 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -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);