Skip to contentSkip to conversation

Fix refcounting problem with ttyIx devices

PATCH New Karsten Keil 1 participant 1 message Mar 2, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 fix the issue.

---

 drivers/isdn/i4l/isdn_tty.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

56365966816e47951a624c10ad2c24dfa979ee0e

drivers/isdn/i4l/isdn_tty.c +1 -0
index 3936336..aeaa1db 100644
@@ -1682,6 +1682,7 @@ isdn_tty_close(struct tty_struct *tty, s
 #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;
Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development