diff options
-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 801de2cada63..fd5835b4afdb 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1132,7 +1132,7 @@ error_return: SYSCALL_DEFINE1(epoll_create, int, size) { - if (size < 0) + if (size <= 0) return -EINVAL; return sys_epoll_create1(0); |