aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rpmsg
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2021-10-26 09:51:28 +0800
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-26 17:23:46 -0400
commitf76fbbbb5061fe14824ba5807c44bd7400a6b4e1 (patch)
tree2c783bad58bf41d35ca95416df860fb76044b181 /samples/rpmsg
parentlib/bootconfig: Fix the xbc_get_info kerneldoc (diff)
downloadlinux-f76fbbbb5061fe14824ba5807c44bd7400a6b4e1.tar.gz
linux-f76fbbbb5061fe14824ba5807c44bd7400a6b4e1.zip
samples/kretprobes: Fix return value if register_kretprobe() failed
Use the actual return value instead of always -1 if register_kretprobe() failed. E.g. without this patch: # insmod samples/kprobes/kretprobe_example.ko func=no_such_func insmod: ERROR: could not insert module samples/kprobes/kretprobe_example.ko: Operation not permitted With this patch: # insmod samples/kprobes/kretprobe_example.ko func=no_such_func insmod: ERROR: could not insert module samples/kprobes/kretprobe_example.ko: Unknown symbol in module Link: https://lkml.kernel.org/r/1635213091-24387-2-git-send-email-yangtiezhu@loongson.cn Fixes: 804defea1c02 ("Kprobes: move kprobe examples to samples/") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples/rpmsg')
0 files changed, 0 insertions, 0 deletions