mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 07:30:53 +07:00
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>
This commit is contained in:
parent
e02a653e15
commit
699817c3df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user