bpf: Fix uprobe_multi get_pid_task error path
authorJiri Olsa <jolsa@kernel.org>
Fri, 15 Sep 2023 10:14:20 +0000 (12:14 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Sep 2023 17:32:40 +0000 (10:32 -0700)
commit57eb5e1c5c57972c95e8efab6bc81b87161b0b07
tree56521ac482ff38002520275cb9a7c199a8c683a0
parentdca7acd84e93f2881e3f63465bbb5d89a40b5d17
bpf: Fix uprobe_multi get_pid_task error path

Dan reported Smatch static checker warning due to missing error
value set in uprobe multi link's get_pid_task error path.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/bpf/c5ffa7c0-6b06-40d5-aca2-63833b5cd9af@moroto.mountain/
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Reviewed-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230915101420.1193800-1-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/bpf_trace.c