]> git.itanic.dy.fi Git - linux-stable/commit
perf dlfilter: Fix use of addr_location__exit() in dlfilter__object_code()
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 28 Sep 2023 07:16:05 +0000 (10:16 +0300)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 30 Sep 2023 06:55:05 +0000 (23:55 -0700)
commit7a48b58eb5ff3798f0480d2da16bf27df9654fc7
tree98399a58b3fd02c60ec56daabd8f974fb4be6d2f
parent48a3adcf47888019f953c57a7290036744635912
perf dlfilter: Fix use of addr_location__exit() in dlfilter__object_code()

Stop calling addr_location__exit() when addr_location__init() was not
called.

Fixes: 0dd5041c9a0e ("perf addr_location: Add init/exit/copy functions")
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20230928071605.17624-1-adrian.hunter@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/dlfilter.c