TTY: pdc_cons, fix regression in close
[linux-flexiantxendom0-3.2.10.git] / arch / parisc / kernel / pdc_cons.c
index 4f00459..0b33933 100644 (file)
@@ -104,7 +104,7 @@ static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp)
 
 static void pdc_console_tty_close(struct tty_struct *tty, struct file *filp)
 {
-       if (!tty->count) {
+       if (tty->count == 1) {
                del_timer_sync(&pdc_console_timer);
                tty_port_tty_set(&tty_port, NULL);
        }