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 acc811b..b382ede 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);
                }