patch-2.0.19 linux/drivers/char/tty_io.c

Next file: linux/drivers/net/de4x5.c
Previous file: linux/drivers/char/psaux.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.18/linux/drivers/char/tty_io.c linux/drivers/char/tty_io.c
@@ -777,8 +777,9 @@
 		ret = write(tty, file, buf, size);
 		if (ret <= 0)
 			break;
-		count -= ret;
 		written += ret;
+		buf += ret;
+		count -= ret;
 		if (!count)
 			break;
 		ret = -ERESTARTSYS;

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