Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b80df7c authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

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: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0e95858
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);