]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf: intel-tpebs: Fix incorrect usage of zfree()
authorJames Clark <james.clark@linaro.org>
Wed, 19 Mar 2025 10:16:10 +0000 (10:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:25 +0000 (14:39 +0200)
commited1d004a5af08acb32ee2b66253aca6d10e59eeb
treeb43b7322192503ba93836e3d35d0a9a524e1d25a
parent70afdf7711712395382a4946e9e5a5216d3eaf3d
perf: intel-tpebs: Fix incorrect usage of zfree()

[ Upstream commit 6d2dcd635204c023eb5328ad7d38b198a5558c9b ]

zfree() requires an address otherwise it frees what's in name, rather
than name itself. Pass the address of name to fix it.

This was the only incorrect occurrence in Perf found using a search.

Fixes: 8db5cabcf1b6 ("perf stat: Fork and launch 'perf record' when 'perf stat' needs to get retire latency value for a metric.")
Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250319101614.190922-1-james.clark@linaro.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/intel-tpebs.c