Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b230ff2d authored by Chris Metcalf's avatar Chris Metcalf
Browse files

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: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 12400f1f
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -342,8 +342,11 @@ 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.
	 */
	 */
	if (!(regs->flags & PT_FLAGS_DISABLE_IRQ))
		local_irq_enable();
		local_irq_enable();


	mm = tsk->mm;
	mm = tsk->mm;