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>
Thu, 2 Apr 2020 14:34:14 +0000 (16:34 +0200)
commitf746a3d21fb4458c03286ad1aba8a1a16fa7e173
tree3e841b542f60127b52df6cd337ff5636ddd49ef2
parentcb18f536e0f013e3cb1fd9cd90c33f9e24d3892e
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