commit | 677ca3060c474d7d89941948e32493d9c18c52d2 | [log] [tgz] |
---|---|---|
author | Alan Cox <alan@linux.intel.com> | Tue Jun 16 17:00:53 2009 +0100 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Jun 16 12:01:16 2009 -0700 |
tree | 2efd5adf7c2ea4cce6ecf608f81575d2be66deb0 | |
parent | 52856ed732aeab5e8e0b7c9e2a7a3d31736218ab [diff] |
ldisc: debug aids Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
diff --git a/drivers/char/tty_ldisc.c b/drivers/char/tty_ldisc.c index 874c248..a19e935 100644 --- a/drivers/char/tty_ldisc.c +++ b/drivers/char/tty_ldisc.c
@@ -207,6 +207,7 @@ ldo->refcount--; module_put(ldo->owner); spin_unlock_irqrestore(&tty_ldisc_lock, flags); + WARN_ON(ld->refcount); kfree(ld); }