summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l
diff options
context:
space:
mode:
authorKarsten Keil <kkeil@suse.de>2006-03-07 00:42:39 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-07 03:40:43 +0100
commit7cb9478f0d5b2424af974646dcbe10ce7c19b550 (patch)
treea645f882deef35c0ebe040a9ee0bb8ce7fc6e8c2 /drivers/isdn/i4l
parent[PATCH] i4l: add new PCI IDs for HFC-S PCI (diff)
downloadlinux-7cb9478f0d5b2424af974646dcbe10ce7c19b550.tar.xz
linux-7cb9478f0d5b2424af974646dcbe10ce7c19b550.zip
[PATCH] i4l: fix refcounting problem with ttyIx devices
If the same ttyIx device was opened by two processes the module was not released and so the usage count went never to zero again. This oneliner fixes the issue. Signed-off-by: Oskar Senft <o.senft@sirrix.com> Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/i4l')
-rw-r--r--drivers/isdn/i4l/isdn_tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index 393633681f49..aeaa1db74bd8 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -1682,6 +1682,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp)
#ifdef ISDN_DEBUG_MODEM_OPEN
printk(KERN_DEBUG "isdn_tty_close after info->count != 0\n");
#endif
+ module_put(info->owner);
return;
}
info->flags |= ISDN_ASYNC_CLOSING;