patch-2.4.21 linux-2.4.21/fs/select.c
Next file: linux-2.4.21/fs/seq_file.c
Previous file: linux-2.4.21/fs/reiserfs/tail_conversion.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/fs/select.c
- Orig date:
2001-09-10 13:04:33.000000000 -0700
diff -urN linux-2.4.20/fs/select.c linux-2.4.21/fs/select.c
@@ -417,7 +417,7 @@
int nchunks, nleft;
/* Do a sanity check on nfds ... */
- if (nfds > NR_OPEN)
+ if (nfds > current->files->max_fdset && nfds > OPEN_MAX)
return -EINVAL;
if (timeout) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)