[PATCH] to select.c (and an apology)

Patrick Mau patrick en oscar.prima.de
Dom Ene 30 21:13:24 CST 2000


Hello all,

my patch for select.c in /usr/src/linux/fs was
missing an importatnt '/ POLLFD_PER_PAGE'.

I'm sorry.
Here's, the correct patch.

cheers,
Patrick
------------ próxima parte ------------
--- /usr/src/linux-2.3.41/fs/select.c	Sat Jan 29 16:05:29 2000
+++ /usr/src/linux-2.3.41-patch/fs/select.c	Mon Jan 31 00:34:53 2000
@@ -414,9 +414,14 @@
 		wait = wait_table;
 	}
 
+/*
 	fds = (struct pollfd **)kmalloc(
 		(1 + (nfds - 1) / POLLFD_PER_PAGE) * sizeof(struct pollfd *),
 		GFP_KERNEL);
+*/
+
+    fds = (struct pollfd **)kmalloc((nfds * sizeof(struct pollfd *))
+                                    / POLLFD_PER_PAGE, GFP_KERNEL);
 	if (fds == NULL)
 		goto out;
 


Más información sobre la lista de distribución Ayuda