From 377ab996cd00495af7bd8e7b8e4e6be414e650c9 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sat, 5 May 2012 22:49:10 +0200 Subject: [PATCH] --- yaml --- r: 300070 b: refs/heads/master c: 49a5f3cf6a956360bb43e5f8d0c592a8daea8ebd h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/parisc/kernel/pdc_cons.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9f8017b67465..6e0a898dd135 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1c2f95480648ed7326ab2288ca0e2d35551db4be +refs/heads/master: 49a5f3cf6a956360bb43e5f8d0c592a8daea8ebd diff --git a/trunk/arch/parisc/kernel/pdc_cons.c b/trunk/arch/parisc/kernel/pdc_cons.c index 4f004596a6e7..0b3393381a81 100644 --- a/trunk/arch/parisc/kernel/pdc_cons.c +++ b/trunk/arch/parisc/kernel/pdc_cons.c @@ -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); }