patch-1.3.4 linux/drivers/char/serial.c
Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/selection.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Jun 26 11:06:51 1995
- Orig file:
v1.3.3/linux/drivers/char/serial.c
- Orig date:
Sat Jun 10 19:13:12 1995
diff -u --recursive --new-file v1.3.3/linux/drivers/char/serial.c linux/drivers/char/serial.c
@@ -1571,7 +1571,7 @@
status = serial_in(info, UART_LSR);
sti();
result = ((status & UART_LSR_TEMT) ? TIOCSER_TEMT : 0);
- put_fs_long(result,(unsigned long *) value);
+ put_user(result,value);
return 0;
}
@@ -1591,7 +1591,7 @@
| ((status & UART_MSR_RI) ? TIOCM_RNG : 0)
| ((status & UART_MSR_DSR) ? TIOCM_DSR : 0)
| ((status & UART_MSR_CTS) ? TIOCM_CTS : 0);
- put_fs_long(result,(unsigned long *) value);
+ put_user(result,value);
return 0;
}
@@ -1604,7 +1604,7 @@
error = verify_area(VERIFY_READ, value, sizeof(int));
if (error)
return error;
- arg = get_fs_long((unsigned long *) value);
+ arg = get_user(value);
switch (cmd) {
case TIOCMBIS:
if (arg & TIOCM_RTS) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this