patch-2.1.11 linux/drivers/char/riscom8.c
Next file: linux/drivers/char/stallion.c
Previous file: linux/drivers/char/istallion.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Nov 18 11:31:30 1996
- Orig file:
v2.1.10/linux/drivers/char/riscom8.c
- Orig date:
Wed Oct 16 10:48:13 1996
diff -u --recursive --new-file v2.1.10/linux/drivers/char/riscom8.c linux/drivers/char/riscom8.c
@@ -41,6 +41,8 @@
#include <linux/fcntl.h>
#include <linux/major.h>
+#include <asm/uaccess.h>
+
#include "riscom8.h"
#include "riscom8_reg.h"
@@ -1369,7 +1371,7 @@
error = verify_area(VERIFY_READ, value, sizeof(int));
if (error)
return error;
- arg = get_fs_long((unsigned long *) value);
+ get_user(arg,(unsigned int *) value);
switch (cmd) {
case TIOCMBIS:
if (arg & TIOCM_RTS)
@@ -1528,7 +1530,7 @@
(unsigned long *) arg);
return 0;
case TIOCSSOFTCAR:
- arg = get_user((unsigned long *) arg);
+ get_user(arg,(unsigned int *) arg);
tty->termios->c_cflag =
((tty->termios->c_cflag & ~CLOCAL) |
(arg ? CLOCAL : 0));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov