]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
TTY: move tty buffers to tty_port
[karo-tx-linux.git] / drivers / tty / pty.c
index c32690862671f859bbdb3c6a0c3f3b4f75f33eb4..4219f040adb8ff55f35109accc5eea5e55ef2366 100644 (file)
@@ -93,7 +93,7 @@ static void pty_unthrottle(struct tty_struct *tty)
 
 static int pty_space(struct tty_struct *to)
 {
-       int n = 8192 - to->buf.memory_used;
+       int n = 8192 - to->port->buf.memory_used;
        if (n < 0)
                return 0;
        return n;