mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[MTD] [OneNAND] omap2: panic_write may be in an interrupt context
panic_write may read in an interrupt context. Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
17b536cc43
commit
a29f280b73
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue