projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee1ef82
)
epoll: fix size check in epoll_create()
author
Davide Libenzi
<
[email protected]
>
Tue, 12 May 2009 20:19:44 +0000
(13:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 12 May 2009 21:11:35 +0000
(14:11 -0700)
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]
>
fs/eventpoll.c
patch
|
blob
|
history
diff --git
a/fs/eventpoll.c
b/fs/eventpoll.c
index a89f370fadb5d72666b87c4b16bfaa9c3833788a..5458e80fc55841d136227f7ce0d7ee97f8ba0f38 100644
(file)
--- 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);