mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
perf trace: Add missing thread__put() in thread__e_machine()
Add missing thread__put() of the found parent thread in thread__e_machine(). Reviewed-by: Howard Chu <howardchu95@gmail.com> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250401202715.3493567-1-irogers@google.com [ split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
8830091383
commit
7900938850
|
|
@ -471,6 +471,7 @@ uint16_t thread__e_machine(struct thread *thread, struct machine *machine)
|
|||
|
||||
if (parent) {
|
||||
e_machine = thread__e_machine(parent, machine);
|
||||
thread__put(parent);
|
||||
thread__set_e_machine(thread, e_machine);
|
||||
return e_machine;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user