CAPI: Issue synchronous hangup on capincci_free_minor
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:31 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:29 +0000 (16:01 -0800)
capincci_free and, thus, capincci_free_minor runs in process context, so
we can issue the hangup of the associated TTY synchronously.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c

index acc811bfe8e0df467753f7ff379e818e2b6bcf1d..b382edeeee1887905f1ef82b141aac4cb7cde392 100644 (file)
@@ -351,7 +351,7 @@ static void capincci_free_minor(struct capincci *np)
 #ifdef _DEBUG_REFCOUNT
                        printk(KERN_DEBUG "reset mp->nccip\n");
 #endif
-                       tty_hangup(tty);
+                       tty_vhangup(tty);
                        tty_kref_put(tty);
                }