summaryrefslogtreecommitdiff
path: root/arch/parisc/mm/fault.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2021-12-22 16:52:26 +0000
committerHelge Deller <deller@gmx.de>2022-01-07 01:29:21 +0100
commit9e9d4b460f23bab61672eae397417d03917d116c (patch)
tree3865cdfd357cbdafa910f384663084539dee7ad5 /arch/parisc/mm/fault.c
parentdb19c6f1a2a353cc8dec35b4789733a3cf6e2838 (diff)
parisc: Avoid calling faulthandler_disabled() twice
In handle_interruption(), we call faulthandler_disabled() to check whether the fault handler is not disabled. If the fault handler is disabled, we immediately call do_page_fault(). It then calls faulthandler_disabled(). If disabled, do_page_fault() attempts to fixup the exception by jumping to no_context: no_context: if (!user_mode(regs) && fixup_exception(regs)) { return; } parisc_terminate("Bad Address (null pointer deref?)", regs, code, address); Apart from the error messages, the two blocks of code perform the same function. We can avoid two calls to faulthandler_disabled() by a simple revision to the code in handle_interruption(). Note: I didn't try to fix the formatting of this code block. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/mm/fault.c')
0 files changed, 0 insertions, 0 deletions