All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] epoll - fix size check in epoll_create
@ 2009-05-12 19:10 Davide Libenzi
  0 siblings, 0 replies; only message in thread
From: Davide Libenzi @ 2009-05-12 19:10 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton, Hiroyuki.Mach, rohit verma

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-12 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-12 19:10 [patch] epoll - fix size check in epoll_create Davide Libenzi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.