[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0905121207100.29869@makko.or.mcafeemobile.com>
Date: Tue, 12 May 2009 12:10:23 -0700 (PDT)
From: Davide Libenzi <davidel@...ilserver.org>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
cc: Andrew Morton <akpm@...ux-foundation.org>, Hiroyuki.Mach@...il.com,
rohit verma <rohit.170309@...il.com>
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@...ilserver.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists