ldisc: debug aids
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
52856ed732
commit
677ca3060c
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ static void tty_ldisc_put(struct tty_ldisc *ld)
|
|||
ldo->refcount--;
|
||||
module_put(ldo->owner);
|
||||
spin_unlock_irqrestore(&tty_ldisc_lock, flags);
|
||||
WARN_ON(ld->refcount);
|
||||
kfree(ld);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue