Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64298
b: refs/heads/master
c: a66639a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Viehmann authored and Greg Kroah-Hartman committed Aug 22, 2007
1 parent 45a1e2a commit ad4ab7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bd307e1b950e0aca1dbbc2b76f542f9c96b9a95
refs/heads/master: a66639ab286250fe66b960c34ac91d0b2ee58a79
10 changes: 4 additions & 6 deletions trunk/drivers/usb/serial/oti6858.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,19 +818,17 @@ static int oti6858_ioctl(struct usb_serial_port *port, struct file *file,

switch (cmd) {
case TCGETS:
if (copy_to_user(user_arg, port->tty->termios,
sizeof(struct ktermios))) {
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 (copy_from_user(port->tty->termios, user_arg,
sizeof(struct ktermios))) {
if (user_termios_to_kernel_termios(port->tty->termios,
(struct ktermios __user *)arg))
return -EFAULT;
}
oti6858_set_termios(port, NULL);
return 0;

Expand Down

0 comments on commit ad4ab7a

Please sign in to comment.