patch-2.1.14 linux/drivers/char/tty_ioctl.c

Next file: linux/drivers/isdn/isdn_tty.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.13/linux/drivers/char/tty_ioctl.c linux/drivers/char/tty_ioctl.c
@@ -513,7 +513,7 @@
 			return 0;
 		case TIOCINQ:
 			retval = verify_area(VERIFY_WRITE, (void *) arg,
-					     sizeof (unsigned long));
+					     sizeof (unsigned int));
 			if (retval)
 				return retval;
 			retval = tty->read_cnt;

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