patch-2.2.13 linux/drivers/char/n_tty.c
Next file: linux/drivers/char/pcwd.c
Previous file: linux/drivers/char/n_hdlc.c
Back to the patch index
Back to the overall index
-  Lines: 8
 -  Date:
Tue Oct 19 17:14:00 1999
 -  Orig file: 
v2.2.12/linux/drivers/char/n_tty.c
 -  Orig date: 
Sat Apr 24 17:49:37 1999
 
diff -u --recursive --new-file v2.2.12/linux/drivers/char/n_tty.c linux/drivers/char/n_tty.c
@@ -854,6 +854,7 @@
 	retval = 0;
 	n = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail));
 	if (n) {
+		mb();
 		retval = copy_to_user(*b, &tty->read_buf[tty->read_tail], n);
 		n -= retval;
 		tty->read_tail = (tty->read_tail + n) & (N_TTY_BUF_SIZE-1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)