patch-2.1.34 linux/drivers/char/n_tty.c

Next file: linux/drivers/char/selection.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/drivers/char/n_tty.c linux/drivers/char/n_tty.c
@@ -707,7 +707,7 @@
 
 	if (!tty->read_buf) {
 		tty->read_buf = (unsigned char *)
-			get_free_page(intr_count ? GFP_ATOMIC : GFP_KERNEL);
+			get_free_page(in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
 		if (!tty->read_buf)
 			return -ENOMEM;
 	}

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