aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/tty_ldisc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index 7f7e1a3d3825..0030d556b9b3 100644
--- a/drivers/tty/tty_ldisc.c
+++ b/drivers/tty/tty_ldisc.c
@@ -854,11 +854,12 @@ void tty_ldisc_hangup(struct tty_struct *tty)
854 */ 854 */
855 mutex_lock(&tty->ldisc_mutex); 855 mutex_lock(&tty->ldisc_mutex);
856 856
857 /* At this point we have a closed ldisc and we want to
858 reopen it. We could defer this to the next open but
859 it means auditing a lot of other paths so this is
860 a FIXME */
861 if (tty_ldisc_hangup_halt(tty)) { 857 if (tty_ldisc_hangup_halt(tty)) {
858
859 /* At this point we have a halted ldisc; we want to close it and
860 reopen a new ldisc. We could defer the reopen to the next
861 open but it means auditing a lot of other paths so this is
862 a FIXME */
862 if (reset == 0) { 863 if (reset == 0) {
863 864
864 if (!tty_ldisc_reinit(tty, tty->termios.c_line)) 865 if (!tty_ldisc_reinit(tty, tty->termios.c_line))