From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ldisc: debug aids
Date: Mon, 15 Jun 2009 16:32:20 +0100 [thread overview]
Message-ID: <20090615153217.4036.96373.stgit@t61.ukuu.org.uk> (raw)
In-Reply-To: <20090615153015.4036.76588.stgit@t61.ukuu.org.uk>
From: Alan Cox <alan@linux.intel.com>
---
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 874c248..a19e935 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)
ldo->refcount--;
module_put(ldo->owner);
spin_unlock_irqrestore(&tty_ldisc_lock, flags);
+ WARN_ON(ld->refcount);
kfree(ld);
}
prev parent reply other threads:[~2009-06-15 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 15:32 [PATCH 0/2] Debug bits for the tty ldisc problem Alan Cox
2009-06-15 14:39 ` Peter Zijlstra
2009-06-15 15:14 ` Alan Cox
2009-06-15 15:19 ` Ingo Molnar
2009-06-15 15:32 ` [PATCH 1/2] ldisc: Make sure the ldisc isn't active when we close it Alan Cox
2009-06-15 15:32 ` Alan Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090615153217.4036.96373.stgit@t61.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox