Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109219
b: refs/heads/master
c: f753f32
h: refs/heads/master
i:
  109217: 761eeaa
  109215: 196170d
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Aug 27, 2008
1 parent 4484dbc commit a853ff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 325a9a3d3990e77c62b771a71239fcd0cb6f6e2c
refs/heads/master: f753f3272b4d2108d1e4b121ddcde504737a8693
6 changes: 4 additions & 2 deletions trunk/drivers/char/tty_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,12 +937,14 @@ int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
return 0;
#endif
case TIOCGSOFTCAR:
return put_user(C_CLOCAL(tty) ? 1 : 0,
/* FIXME: for correctness we may need to take the termios
lock here - review */
return put_user(C_CLOCAL(real_tty) ? 1 : 0,
(int __user *)arg);
case TIOCSSOFTCAR:
if (get_user(arg, (unsigned int __user *) arg))
return -EFAULT;
return tty_change_softcar(tty, arg);
return tty_change_softcar(real_tty, arg);
default:
return -ENOIOCTLCMD;
}
Expand Down

0 comments on commit a853ff2

Please sign in to comment.