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
-  Lines: 13
-  Date:
Tue Oct  8 11:17:30 1996
-  Orig file: 
v2.1.1/linux/drivers/char/console.c
-  Orig date: 
Mon Sep 23 16:30:46 1996
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