Skip to contentSkip to conversation

parisc: additionally check for in_atomic() in page fault handler

PATCH New Helge Deller 1 participant 1 message Sep 2, 2015 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: additionally check for in_atomic() in page fault handler

Craig Estey noticed that we didn't checked for in_atomic() in our page fault handler like other architectures. This commit adds this check by using faulthandler_disabled() which includes a check for pagefault_disabled() and in_atomic().

arch/parisc/mm/fault.c +1 -1
index 15503ad..ac6f174 100644
@@ -207,7 +207,7 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,
 	int fault;
 	unsigned int flags;
 
-	if (pagefault_disabled())
+	if (faulthandler_disabled())
 		goto no_context;
 
 	tsk = current;