Skip to content
Snippets Groups Projects
Commit 677ca306 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

ldisc: debug aids

parent 52856ed7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment