author: Peter Zijlstra <peterz@infradead.org> 2021-05-25 09:25:19 +0200
committer: Peter Zijlstra <peterz@infradead.org> 2021-06-01 16:00:08 +0200
commit: ec6aba3d2be1ed75b3f4c894bb64a36d40db1f55
parent: 9ce4d216fe8b581e4da4406461a4cfc9acbfa679
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 10 deletions
diff --git a/arch/csky/kernel/probes/kprobes.c b/arch/csky/kernel/probes/kprobes.c
index 589f090f48b9..e0e973e49770 100644
--- a/arch/csky/kernel/probes/kprobes.c
+++ b/arch/csky/kernel/probes/kprobes.c
@@ -301,16 +301,6 @@ int __kprobes kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr)
*/
kprobes_inc_nmissed_count(cur);
- /*
- * We come here because instructions in the pre/post
- * handler caused the page_fault, this could happen
- * if handler tries to access user space by
- * copy_from_user(), get_user() etc. Let the
- * user-specified handler try to fix it first.
- */
- if (cur->fault_handler && cur->fault_handler(cur, regs, trapnr))
- return 1;
-
/*
* In case the user-specified fault handler returned
* zero, try to fix up.