|
@@ -796,14 +796,14 @@ int n_tty_ioctl(struct tty_struct * tty, struct file * file,
|
|
retval = inq_canon(tty);
|
|
retval = inq_canon(tty);
|
|
return put_user(retval, (unsigned int __user *) arg);
|
|
return put_user(retval, (unsigned int __user *) arg);
|
|
case TIOCGLCKTRMIOS:
|
|
case TIOCGLCKTRMIOS:
|
|
- if (kernel_termios_to_user_termios((struct termios __user *)arg, real_tty->termios_locked))
|
|
|
|
|
|
+ if (kernel_termios_to_user_termios_1((struct termios __user *)arg, real_tty->termios_locked))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
case TIOCSLCKTRMIOS:
|
|
case TIOCSLCKTRMIOS:
|
|
if (!capable(CAP_SYS_ADMIN))
|
|
if (!capable(CAP_SYS_ADMIN))
|
|
return -EPERM;
|
|
return -EPERM;
|
|
- if (user_termios_to_kernel_termios(real_tty->termios_locked, (struct termios __user *) arg))
|
|
|
|
|
|
+ if (user_termios_to_kernel_termios_1(real_tty->termios_locked, (struct termios __user *) arg))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
return 0;
|
|
return 0;
|
|
|
|
|