Messages in this thread | | | Date | Mon, 31 Jan 2000 09:06:39 +0000 (GMT) | From | Tigran Aivazian <> | Subject | Re: (fix - thanks to Manfred) Re: 2.3.41: kmalloc: Size (33554432) too large. |
| |
oops, I just thought... nfds=0 can be used as a timeout facility, stand by for a proper fix...
On Mon, 31 Jan 2000, Tigran Aivazian wrote:
> Hi, > > Manfred spotted it - it was nfds = 0 that would cause overflow. Dumb I was > checking the entire range +/-2G and forgetting about the middle :) > > Here is the fix (return 0 like other Unices do if nfds = 0). > > Regards, > ------ > Tigran A. Aivazian | http://www.sco.com > Escalations Research Group | tel: +44-(0)1923-813796 > Santa Cruz Operation Ltd | http://www.ocston.org/~tigran > > --- select.c.0 Mon Jan 31 08:48:52 2000 > +++ select.c Mon Jan 31 08:51:06 2000 > @@ -391,6 +391,9 @@ > poll_table *wait_table = NULL, *wait = NULL; > int nchunks, nleft; > > + if (nfds == 0) > + return 0; > + > /* Do a sanity check on nfds ... */ > if (nfds > current->files->max_fds) > return -EINVAL; > > > >
- 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/
| |