sh: Kill off duplicate page fault notifiers in slow path.
We already have hooks in place in the __do_page_fault() fast-path, so kill them off in the slow path. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
887f1ae3bc
commit
8f2baee280
1 changed files with 4 additions and 7 deletions
|
@ -53,13 +53,10 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
|
||||||
int fault;
|
int fault;
|
||||||
siginfo_t info;
|
siginfo_t info;
|
||||||
|
|
||||||
if (notify_page_fault(regs, lookup_exception_vector()))
|
/*
|
||||||
return;
|
* We don't bother with any notifier callbacks here, as they are
|
||||||
|
* all handled through the __do_page_fault() fast-path.
|
||||||
#ifdef CONFIG_SH_KGDB
|
*/
|
||||||
if (kgdb_nofault && kgdb_bus_err_hook)
|
|
||||||
kgdb_bus_err_hook();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
tsk = current;
|
tsk = current;
|
||||||
si_code = SEGV_MAPERR;
|
si_code = SEGV_MAPERR;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue