mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
arch/tile: don't enable irqs unconditionally in page fault handler
If we took a page fault while we had interrupts disabled, we shouldn't enable them in the page fault handler. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
12400f1f22
commit
b230ff2d5c
@ -342,9 +342,12 @@ static int handle_page_fault(struct pt_regs *regs,
|
|||||||
/*
|
/*
|
||||||
* If we're trying to touch user-space addresses, we must
|
* If we're trying to touch user-space addresses, we must
|
||||||
* be either at PL0, or else with interrupts enabled in the
|
* be either at PL0, or else with interrupts enabled in the
|
||||||
* kernel, so either way we can re-enable interrupts here.
|
* kernel, so either way we can re-enable interrupts here
|
||||||
|
* unless we are doing atomic access to user space with
|
||||||
|
* interrupts disabled.
|
||||||
*/
|
*/
|
||||||
local_irq_enable();
|
if (!(regs->flags & PT_FLAGS_DISABLE_IRQ))
|
||||||
|
local_irq_enable();
|
||||||
|
|
||||||
mm = tsk->mm;
|
mm = tsk->mm;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user