]> git.hungrycats.org Git - linux/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 11:58:52 +0000 (13:58 +0200)
commit29fa34378482abf3649cb73bdbf730e0825a7706
tree0f6fcf0984e64d9713fab10abc3aa7c0cf1dd031
parent82b312205470e5bf565206a151b212bf4d00e753
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