patch-2.1.110 linux/drivers/char/random.c

Next file: linux/drivers/char/rsf16fmi.h
Previous file: linux/drivers/char/radio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/drivers/char/random.c linux/drivers/char/random.c
@@ -1268,7 +1268,7 @@
 		nbytes -= i;
 		buf += i;
 		add_timer_randomness(r, &extract_timer_state, nbytes);
-		if (to_user && need_resched)
+		if (to_user && current->need_resched)
 			schedule();
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov