patch-2.1.2 linux/drivers/char/console.c

Next file: linux/drivers/char/cyclades.c
Previous file: linux/arch/sparc/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.1/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -1391,7 +1391,12 @@
 	disable_bh(CONSOLE_BH);
 	while (!tty->stopped &&	count) {
 		enable_bh(CONSOLE_BH);
+		if (exception()) {
+			n = -EFAULT;
+			break;
+		}
 		c = from_user ? get_user(buf) : *buf;
+		end_exception();
 		buf++; n++; count--;
 		disable_bh(CONSOLE_BH);
 

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