[MTD] [OneNAND] omap2: panic_write may be in an interrupt context
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Mar 23 09:59:01 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a29f280b739985a9e829d67af4d08e6584153495
Commit: a29f280b739985a9e829d67af4d08e6584153495
Parent: 17b536cc43bcf2afcc20b4812f93a895881b5f4f
Author: Adrian Hunter <adrian.hunter at nokia.com>
AuthorDate: Mon Mar 23 14:57:38 2009 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Mar 23 13:13:55 2009 +0000
[MTD] [OneNAND] omap2: panic_write may be in an interrupt context
panic_write may read in an interrupt context.
Signed-off-by: Adrian Hunter <adrian.hunter at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/onenand/omap2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 77a4f14..2c199b3 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -294,6 +294,10 @@ static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area,
if (bram_offset & 3 || (size_t)buf & 3 || count < 384)
goto out_copy;
+ /* panic_write() may be in an interrupt context */
+ if (in_interrupt())
+ goto out_copy;
+
if (buf >= high_memory) {
struct page *p1;
More information about the linux-mtd-cvs
mailing list