parisc: Additionally check for in_atomic() in page fault handler
authorHelge Deller <deller@gmx.de>
Wed, 2 Sep 2015 16:18:48 +0000 (18:18 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 8 Sep 2015 13:30:56 +0000 (15:30 +0200)
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().

Reported-by: Craig Estey <cae370@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/fault.c

index 15503adddf4f59695d34f3b5adb428250594bf66..a762864ec92e9baf9bf2d2016474c21b94e026b8 100644 (file)
@@ -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;