diff options
-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 874c2486c034..a19e935847b0 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 | ||