tracing/uprobe: Fix uprobe_perf_open probes iteration
authorJiri Olsa <jolsa@redhat.com>
Tue, 23 Nov 2021 14:28:01 +0000 (15:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:43 +0000 (09:04 +0100)
commita3e90db5180fd7f5d38940e2022aee19c3332f3e
tree8490fc4559fbeaf8d5365cd338d9ca6409c4e7a1
parent83247fdb9417e7ce9eaf838e43840df8e6ee9a1c
tracing/uprobe: Fix uprobe_perf_open probes iteration

commit 1880ed71ce863318c1ce93bf324876fb5f92854f upstream.

Add missing 'tu' variable initialization in the probes loop,
otherwise the head 'tu' is used instead of added probes.

Link: https://lkml.kernel.org/r/20211123142801.182530-1-jolsa@kernel.org
Cc: stable@vger.kernel.org
Fixes: 99c9a923e97a ("tracing/uprobe: Fix double perf_event linking on multiprobe uprobe")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_uprobe.c