diff options
author | Davide Libenzi <davidel@xmailserver.org> | 2009-05-12 13:19:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-05-18 16:35:10 -0700 |
commit | 4eccd99ef7a39afd3005dadc91a80031aca5cbd6 (patch) | |
tree | 105e327797e20329d22516c0064f7469dbeb9f85 /fs | |
parent | 330081190974939b32fd0bb6dc7587580708ea1f (diff) | |
download | linux-rt-4eccd99ef7a39afd3005dadc91a80031aca5cbd6.tar.gz |
epoll: fix size check in epoll_create()
commit bfe3891a5f5d3b78146a45f40e435d14f5ae39dd upstream.
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 <davidel@xmailserver.org>
Cc: <Hiroyuki.Mach@gmail.com>
Cc: rohit verma <rohit.170309@gmail.com>
Cc: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/eventpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 011b9b8c90c6..e323e4793afd 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1136,7 +1136,7 @@ error_return: SYSCALL_DEFINE1(epoll_create, int, size) { - if (size < 0) + if (size <= 0) return -EINVAL; return sys_epoll_create1(0); |