summaryrefslogtreecommitdiffstats
path: root/arch/parisc/mm/fault.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2015-09-02 18:18:48 +0200
committerHelge Deller <deller@gmx.de>2015-09-08 15:30:56 +0200
commit699817c3df46eb209044d8c9eb20c6ff6c67c81d (patch)
tree74d6221711893ca86b50ae5f03904efe0868b4e5 /arch/parisc/mm/fault.c
parente02a653e15d8d32e9e768fd99a3271aafe5c5d77 (diff)
downloadop-kernel-dev-699817c3df46eb209044d8c9eb20c6ff6c67c81d.zip
op-kernel-dev-699817c3df46eb209044d8c9eb20c6ff6c67c81d.tar.gz
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(). Reported-by: Craig Estey <cae370@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/mm/fault.c')
-rw-r--r--arch/parisc/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/mm/fault.c b/arch/parisc/mm/fault.c
index 15503ad..a762864 100644
--- a/arch/parisc/mm/fault.c
+++ b/arch/parisc/mm/fault.c
@@ -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;
OpenPOWER on IntegriCloud