drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer
authorluanshi <zhangliguang@linux.alibaba.com>
Wed, 26 Feb 2020 05:45:10 +0000 (13:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:06:07 +0000 (08:06 +0100)
commitb3e9f82b2a517bf327a3242d5af26165d0079114
tree65653be3e66e61b4b5d06ba04ac65760b9d5a269
parenta832f5e0e8b37575bcc81eb404787a777d076db1
drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer

[ Upstream commit 3ba52ad55b533760a1f65836aa0ec9d35e36bb4f ]

Fix bogus NULL checks on the return value of acpi_cpu_get_madt_gicc()
by checking for a 0 'gicc->performance_interrupt' value instead.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm_pmu_acpi.c