commit | bfe3891a5f5d3b78146a45f40e435d14f5ae39dd | [log] [tgz] |
---|---|---|
author | Davide Libenzi <[email protected]> | Tue May 12 13:19:44 2009 -0700 |
committer | Linus Torvalds <[email protected]> | Tue May 12 14:11:35 2009 -0700 |
tree | 96e55f37ddf575c20f98bcdfa0902eacdab89978 | |
parent | ee1ef82c7e6d073f881952348960bbc639687482 [diff] [blame] |
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]>
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index a89f370..5458e80 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c
@@ -1212,7 +1212,7 @@ SYSCALL_DEFINE1(epoll_create, int, size) { - if (size < 0) + if (size <= 0) return -EINVAL; return sys_epoll_create1(0);