From: Peter Hurley Date: Sat, 15 Jun 2013 13:14:13 +0000 (-0400) Subject: tty: Don't change receive_room for ioctl(TIOCSETD) X-Git-Tag: MMI-PSA29.97-13-9~13777^2~221 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b80df7ca7e2fec76be2eda304cc7e0eb90f911d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tty: Don't change receive_room for ioctl(TIOCSETD) tty_set_ldisc() is guaranteed exclusive use of the line discipline by tty_ldisc_lock_pair_timeout(); shutting off input by resetting receive_room is unnecessary. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 75fa99978348..e52d61573553 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -540,9 +540,6 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc) return 0; } - /* FIXME: why 'shutoff' input if the ldisc is locked? */ - tty->receive_room = 0; - old_ldisc = tty->ldisc; tty_lock(tty);