提交 a29f280b 编写于 作者: A Adrian Hunter 提交者: David Woodhouse

[MTD] [OneNAND] omap2: panic_write may be in an interrupt context

panic_write may read in an interrupt context.
Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 17b536cc
...@@ -294,6 +294,10 @@ static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, ...@@ -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) if (bram_offset & 3 || (size_t)buf & 3 || count < 384)
goto out_copy; goto out_copy;
/* panic_write() may be in an interrupt context */
if (in_interrupt())
goto out_copy;
if (buf >= high_memory) { if (buf >= high_memory) {
struct page *p1; struct page *p1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册