]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/uprobe: Fix uprobe_perf_open probes iteration
authorJiri Olsa <jolsa@redhat.com>
Tue, 23 Nov 2021 14:28:01 +0000 (15:28 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 24 Nov 2021 01:52:01 +0000 (20:52 -0500)
commitcd96dee519c7ba2fb950983d84636f8aef8dcf29
tree5673be546c4794f50035c4d9b75f7734f57089d3
parent183b8c70348e8991bc1bb81710777587b8549f2a
tracing/uprobe: Fix uprobe_perf_open probes iteration

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: 24a3092d6387 ("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>
kernel/trace/trace_uprobe.c