Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95165
b: refs/heads/master
c: 638157b
h: refs/heads/master
i:
  95163: 6f4396a
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent f79eba8 commit c0dfbb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: bdf183aa47dcb46782e22ebd4d1061e47ad74b14
refs/heads/master: 638157bc1461f6718eeca06bedd9a09cf1f35c36
15 changes: 3 additions & 12 deletions trunk/drivers/char/serial167.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,8 @@ cy_ioctl(struct tty_struct *tty, struct file *file,
printk("cy_ioctl %s, cmd = %x arg = %lx\n", tty->name, cmd, arg); /* */
#endif

lock_kernel();

switch (cmd) {
case CYGETMON:
ret_val = get_mon_info(info, argp);
Expand Down Expand Up @@ -1584,18 +1586,6 @@ cy_ioctl(struct tty_struct *tty, struct file *file,
break;

/* The following commands are incompletely implemented!!! */
case TIOCGSOFTCAR:
ret_val =
put_user(C_CLOCAL(tty) ? 1 : 0,
(unsigned long __user *)argp);
break;
case TIOCSSOFTCAR:
ret_val = get_user(val, (unsigned long __user *)argp);
if (ret_val)
break;
tty->termios->c_cflag =
((tty->termios->c_cflag & ~CLOCAL) | (val ? CLOCAL : 0));
break;
case TIOCGSERIAL:
ret_val = get_serial_info(info, argp);
break;
Expand All @@ -1605,6 +1595,7 @@ cy_ioctl(struct tty_struct *tty, struct file *file,
default:
ret_val = -ENOIOCTLCMD;
}
unlock_kernel();

#ifdef SERIAL_DEBUG_OTHER
printk("cy_ioctl done\n");
Expand Down

0 comments on commit c0dfbb6

Please sign in to comment.