Skip to content

Commit

Permalink
[MTD] [OneNAND] omap2: panic_write may be in an interrupt context
Browse files Browse the repository at this point in the history
panic_write may read in an interrupt context.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Mar 23, 2009
1 parent 17b536c commit a29f280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mtd/onenand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a29f280

Please sign in to comment.