aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-10-13 05:39:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-13 12:51:41 -0400
commitf4d2a6c2096b764decb20070b1bf4356de9144a8 (patch)
treeff1f86d51ea0a60c0a1d22df68e39dd78e625ab1 /drivers
parent8f520021837d45c47d0ab57e7271f8d88bf7f3a4 (diff)
tty: compare the tty winsize
We always use the real tty one for stuff so the pty one should not be compared. As we propagate window changes to both it doesn't currently matter but will when we tidy up the pty termios logic a bit more Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/tty_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index ac53d7f9b5d4..9a76db3cda1c 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2133,7 +2133,7 @@ int tty_do_resize(struct tty_struct *tty, struct tty_struct *real_tty,
2133 2133
2134 /* For a PTY we need to lock the tty side */ 2134 /* For a PTY we need to lock the tty side */
2135 mutex_lock(&real_tty->termios_mutex); 2135 mutex_lock(&real_tty->termios_mutex);
2136 if (!memcmp(ws, &tty->winsize, sizeof(*ws))) 2136 if (!memcmp(ws, &real_tty->winsize, sizeof(*ws)))
2137 goto done; 2137 goto done;
2138 /* Get the PID values and reference them so we can 2138 /* Get the PID values and reference them so we can
2139 avoid holding the tty ctrl lock while sending signals */ 2139 avoid holding the tty ctrl lock while sending signals */