From: Peter Hurley Date: Sat, 15 Jun 2013 13:01:00 +0000 (-0400) Subject: tty: Reset itty for other pty X-Git-Tag: upstream/snapshot3+hdmi~4848^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64e377dcd7d75c241d614458e9619d3445de44ef;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git tty: Reset itty for other pty Commit 19ffd68f816878aed456d5e87697f43bd9e3bd2b ('pty: Remove redundant itty reset') introduced a regression whereby the other pty's linkage is not cleared on teardown. This triggers a false positive diagnostic in testing. Properly reset the itty linkage. Signed-off-by: Peter Hurley Cc: stable # 3.10 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index bd88007..366af83 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -1618,6 +1618,8 @@ static void release_tty(struct tty_struct *tty, int idx) tty_free_termios(tty); tty_driver_remove_tty(tty->driver, tty); tty->port->itty = NULL; + if (tty->link) + tty->link->port->itty = NULL; cancel_work_sync(&tty->port->buf.work); if (tty->link)