xref: /linux/arch/arm/lib/error-inject.c (revision 3ade6ce1255e6e97f91b8ba77408dce9d2292df2)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/error-injection.h>
4 #include <linux/kprobes.h>
5 
6 void override_function_with_return(struct pt_regs *regs)
7 {
8 	instruction_pointer_set(regs, regs->ARM_lr);
9 }
10 NOKPROBE_SYMBOL(override_function_with_return);
11