diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-05-07 22:30:08 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-05-20 04:10:50 +0300 |
commit | fc9d276f22330e9322a9c592c71e0571810205f7 (patch) | |
tree | c312d142bbe9ccd2861cf275b1ebafb244d4eb0c /scripts/gdb/linux | |
parent | 98d0a685cf8bcde23f4b0d1aa0a348fcef84569b (diff) | |
download | linux-fc9d276f22330e9322a9c592c71e0571810205f7.tar.xz |
tracing/probe: reverse arguments to list_add
Elsewhere in the file, the function trace_kprobe_has_same_kprobe uses
a trace_probe_event.probes object as the second argument of
list_for_each_entry, ie as a list head, while the list_for_each_entry
iterates over the list fields of the trace_probe structures, making
them the list elements. So, exchange the arguments on the list_add
call to put the list head in the second argument.
Since both list_head structures were just initialized, this problem
did not cause any loss of information.
Link: https://lkml.kernel.org/r/1588879808-24488-1-git-send-email-Julia.Lawall@inria.fr
Fixes: 60d53e2c3b75 ("tracing/probe: Split trace_event related data from trace_probe")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions