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