diff options
author | Alan Cox <alan@linux.intel.com> | 2009-06-16 12:00:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 15:01:16 -0400 |
commit | 677ca3060c474d7d89941948e32493d9c18c52d2 (patch) | |
tree | 2efd5adf7c2ea4cce6ecf608f81575d2be66deb0 /drivers/char | |
parent | 52856ed732aeab5e8e0b7c9e2a7a3d31736218ab (diff) |
ldisc: debug aids
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tty_ldisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tty_ldisc.c b/drivers/char/tty_ldisc.c index 874c2486c03..a19e935847b 100644 --- a/drivers/char/tty_ldisc.c +++ b/drivers/char/tty_ldisc.c | |||
@@ -207,6 +207,7 @@ static void tty_ldisc_put(struct tty_ldisc *ld) | |||
207 | ldo->refcount--; | 207 | ldo->refcount--; |
208 | module_put(ldo->owner); | 208 | module_put(ldo->owner); |
209 | spin_unlock_irqrestore(&tty_ldisc_lock, flags); | 209 | spin_unlock_irqrestore(&tty_ldisc_lock, flags); |
210 | WARN_ON(ld->refcount); | ||
210 | kfree(ld); | 211 | kfree(ld); |
211 | } | 212 | } |
212 | 213 | ||