aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/onenand/omap2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 75f38b95811e..dfbab6c72b74 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -308,7 +308,7 @@ static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area,
308 goto out_copy; 308 goto out_copy;
309 309
310 /* panic_write() may be in an interrupt context */ 310 /* panic_write() may be in an interrupt context */
311 if (in_interrupt()) 311 if (in_interrupt() || oops_in_progress)
312 goto out_copy; 312 goto out_copy;
313 313
314 if (buf >= high_memory) { 314 if (buf >= high_memory) {
@@ -385,7 +385,7 @@ static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area,
385 goto out_copy; 385 goto out_copy;
386 386
387 /* panic_write() may be in an interrupt context */ 387 /* panic_write() may be in an interrupt context */
388 if (in_interrupt()) 388 if (in_interrupt() || oops_in_progress)
389 goto out_copy; 389 goto out_copy;
390 390
391 if (buf >= high_memory) { 391 if (buf >= high_memory) {