From: Arnaldo Carvalho de Melo Date: Tue, 19 May 2015 23:07:14 +0000 (-0300) Subject: perf machine: Do not call map_groups__delete(), drop refcnt instead X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e160b2e1e3efdd84ddef726f9b5136dd192a682;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf machine: Do not call map_groups__delete(), drop refcnt instead It could be used somewhere, so just call map__groups_put() to make sure we don't delete it prematurely Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-dxmh8mr12i65p8h909vi88cp@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index daa55910ff28..7ec3188d3cb3 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -333,7 +333,7 @@ static void machine__update_thread_pid(struct machine *machine, if (!map_groups__empty(th->mg)) pr_err("Discarding thread maps for %d:%d\n", th->pid_, th->tid); - map_groups__delete(th->mg); + map_groups__put(th->mg); } th->mg = map_groups__get(leader->mg);