From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [patch] warn on release_region() from irq context
Date: Sat, 28 Jan 2006 15:43:57 +0100 [thread overview]
Message-ID: <20060128144357.GA6881@elte.hu> (raw)
it is not legal to call release_region() from hardirq/softirq context.
Add a WARN_ON() so that we find such cases.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
----
kernel/resource.c | 3 +++
1 files changed, 3 insertions(+)
Index: linux/kernel/resource.c
===================================================================
--- linux.orig/kernel/resource.c
+++ linux/kernel/resource.c
@@ -18,6 +18,7 @@
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
+#include <linux/interrupt.h>
#include <asm/io.h>
@@ -486,6 +487,8 @@ void __release_region(struct resource *p
struct resource **p;
unsigned long end;
+ WARN_ON(in_interrupt());
+
p = &parent->child;
end = start + n - 1;
next reply other threads:[~2006-01-28 14:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-28 14:43 Ingo Molnar [this message]
2006-01-28 15:00 ` [patch] warn on release_region() from irq context Ingo Molnar
2006-01-28 16:02 ` Ingo Molnar
2006-01-29 13:06 ` Ingo Molnar
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=20060128144357.GA6881@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.