]> git.itanic.dy.fi Git - linux-stable/commit
perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Apr 2023 13:23:35 +0000 (10:23 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:50:20 +0000 (11:50 +0200)
commit4f128167e64b5c1f1e79129d56f9d97541f1cce1
tree39299eb8e015b2eb592d3f1ce39d3dc5f0febfdb
parente685e2e2bd143037ef43730cefbf8ee5ce43f0f8
perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents

[ Upstream commit 57f14b5ae1a97537f2abd2828ee7212cada7036e ]

An audit showed just this one problem with zfree(), fix it.

Fixes: 9fbc61f832ebf432 ("perf pmu: Add support for PMU capabilities")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/pmu.c