Re: [PATCH] parse_table() earlier check.

2007-07-21 Thread Tetsuo Handa
Alexey Dobriyan wrote: > On Fri, Jul 20, 2007 at 12:37:45PM +0900, Tetsuo Handa wrote: > > --- linux-2.6.22-orig/kernel/sysctl.c > > +++ linux-2.6.22/kernel/sysctl.c > > @@ -1190,9 +1190,9 @@ > > return -ENOTDIR; > > if (get_user(n, name)) > > return -EFAULT; > > + if

Re: [PATCH] parse_table() earlier check.

2007-07-21 Thread Alexey Dobriyan
On Fri, Jul 20, 2007 at 12:37:45PM +0900, Tetsuo Handa wrote: > --- linux-2.6.22-orig/kernel/sysctl.c > +++ linux-2.6.22/kernel/sysctl.c > @@ -1190,9 +1190,9 @@ > return -ENOTDIR; > if (get_user(n, name)) > return -EFAULT; > + if (!n) > + return -EN