blob: d667ade2bc41cdac5e695451e81ab27df4edd8c8 [file] [log] [blame]
Guo Renee55ff82020-12-17 16:01:45 +00001// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/error-injection.h>
4#include <linux/kprobes.h>
5
6void override_function_with_return(struct pt_regs *regs)
7{
8 instruction_pointer_set(regs, regs->ra);
9}
10NOKPROBE_SYMBOL(override_function_with_return);