Commit 677ca306 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

ldisc: debug aids

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52856ed7
...@@ -207,6 +207,7 @@ static void tty_ldisc_put(struct tty_ldisc *ld) ...@@ -207,6 +207,7 @@ static void tty_ldisc_put(struct tty_ldisc *ld)
ldo->refcount--; ldo->refcount--;
module_put(ldo->owner); module_put(ldo->owner);
spin_unlock_irqrestore(&tty_ldisc_lock, flags); spin_unlock_irqrestore(&tty_ldisc_lock, flags);
WARN_ON(ld->refcount);
kfree(ld); kfree(ld);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment