提交 fa0e6721 编写于 作者: A Alan Cox 提交者: Greg Kroah-Hartman

USB: oti6858: Remove broken ioctl code in -mm tree and also the broken fixes

This stuff is simply not needed.
Signed-off-by: NAlan Cox <alan@redhat.com>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0d4cbb5e
......@@ -817,21 +817,6 @@ static int oti6858_ioctl(struct usb_serial_port *port, struct file *file,
__FUNCTION__, port->number, cmd, arg);
switch (cmd) {
case TCGETS:
if (kernel_termios_to_user_termios((struct ktermios __user *)arg,
port->tty->termios))
return -EFAULT;
return 0;
case TCSETS:
case TCSETSW: /* FIXME: this is not the same! */
case TCSETSF: /* FIXME: this is not the same! */
if (user_termios_to_kernel_termios(port->tty->termios,
(struct ktermios __user *)arg))
return -EFAULT;
oti6858_set_termios(port, NULL);
return 0;
case TCFLSH:
/* FIXME */
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册