]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/tty_io.c
tty: Termios locking - sort out real_tty confusions and lock reads
[linux-2.6-omap-h63xx.git] / drivers / char / tty_io.c
index fa162c93ee025a89188856da71ffdf54a3ffc4aa..ac53d7f9b5d4d159511b8ce80d0d32defbb86b66 100644 (file)
@@ -2605,7 +2605,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        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: