]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tty: Termios locking - sort out real_tty confusions and lock reads
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:38:46 +0000 (10:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:05:13 +0000 (14:05 -0700)
commit 8f520021837d45c47d0ab57e7271f8d88bf7f3a4 upstream

(only the tty_io.c portion of this commit)

This moves us towards sanity and should mean our termios locking is now
complete and comprehensive.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_io.c

index 613ec816ce606c004c07c24038bd169d90840c85..31143e9bf0bb12e803ff4b692f3b8f5adc62bd6e 100644 (file)
@@ -3373,7 +3373,7 @@ int tty_ioctl(struct inode *inode, struct file *file,
        case TIOCSTI:
                return tiocsti(tty, p);
        case TIOCGWINSZ:
-               return tiocgwinsz(tty, p);
+               return tiocgwinsz(real_tty, p);
        case TIOCSWINSZ:
                return tiocswinsz(tty, real_tty, p);
        case TIOCCONS: