--- drivers/char/tty_io_orig.c 2008-10-10 02:30:18.000000000 +0200 +++ drivers/char/tty_io.c 2008-10-10 02:33:38.000000000 +0200 @@ -3014,6 +3014,9 @@ static int tiocswinsz(struct tty_struct } } #endif + tty->winsize = tmp_ws; + real_tty->winsize = tmp_ws; + /* Get the PID values and reference them so we can avoid holding the tty ctrl lock while sending signals */ spin_lock_irqsave(&tty->ctrl_lock, flags); @@ -3028,9 +3031,6 @@ static int tiocswinsz(struct tty_struct put_pid(pgrp); put_pid(rpgrp); - - tty->winsize = tmp_ws; - real_tty->winsize = tmp_ws; done: mutex_unlock(&tty->termios_mutex); return 0;