perf/core: Fix potential NULL deref
authorPeter Zijlstra <peterz@infradead.org>
Tue, 24 Oct 2023 09:42:21 +0000 (11:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Nov 2023 08:35:32 +0000 (09:35 +0100)
commit8b8cde8ebb872a6b62aee81869ad235a5eb251d9
treea3223807999657f7128a93d3adfcbe4652a477eb
parent5e232f2205f201dd38187adf62f5cb14b372284b
perf/core: Fix potential NULL deref

commit a71ef31485bb51b846e8db8b3a35e432cc15afb5 upstream.

Smatch is awesome.

Fixes: 32671e3799ca ("perf: Disallow mis-matched inherited group reads")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/events/core.c