tty: Fix termios tty window resize race with pty/tty pair
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 26 Aug 2008 18:55:58 +0000 (19:55 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 27 Aug 2008 21:37:09 +0000 (14:37 -0700)
Kanru Chen posted a patch versus the old code which deals with the case
where you resize the pty side of a pty/tty pair. In that situation the
termios data is updated for both pty and tty but the locks are not held
for the right side.

This implements the fix differently against the updated tty code. Patch
by self but the hard bit (noticing and fixing the bug) is thanks to Kanru
Chen.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found