lkml.org 
[lkml]   [2009]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] epoll - fix size check in epoll_create
Andrew, this one-liner fixes a size check WRT the manual pages, that had 
been broken somewhere in the past (might have been Uli with the
open-with-flags changes, though I'm not sure).



Signed-off-by: Davide Libenzi <davidel@xmailserver.org>


- Davide


---
fs/eventpoll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.mod/fs/eventpoll.c
===================================================================
--- linux-2.6.mod.orig/fs/eventpoll.c 2009-05-12 12:05:36.000000000 -0700
+++ linux-2.6.mod/fs/eventpoll.c 2009-05-12 12:05:56.000000000 -0700
@@ -1212,7 +1212,7 @@ SYSCALL_DEFINE1(epoll_create1, int, flag

SYSCALL_DEFINE1(epoll_create, int, size)
{
- if (size < 0)
+ if (size <= 0)
return -EINVAL;

return sys_epoll_create1(0);


\
 
 \ /
  Last update: 2009-05-12 21:17    [W:0.019 / U:2.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site