Re: [PATCH] sys_select() kmallocs 0 bytes.

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu May 25 2000 - 15:06:40 EST


> ret = -EINVAL;
> - if (n < 0)
> + if (n <= 0)
> goto out_nofds;

This is incorrect. In fact the zero kmalloc if anything is harmless. A
0 fd select is legal and used for timers

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:14 EST