Skip to content
Commit 8e96f741 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Greg Kroah-Hartman
Browse files

perf trace: Use zfree() to reduce chances of use after free

[ Upstream commit 9997d5dd

 ]

Do defensive programming by using zfree() to initialize freed pointers
to NULL, so that eventual use after free result in a NULL pointer deref
instead of more subtle behaviour.

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Stable-dep-of: 7962ef13

 ("perf trace: Really free the evsel->priv area")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 414cf7a2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment