OSDN Git Service

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)
committerWill Deacon <will@kernel.org>
Mon, 2 Mar 2020 12:07:35 +0000 (12:07 +0000)
commit3ba52ad55b533760a1f65836aa0ec9d35e36bb4f
treee8a2e685ca1660789d369cf830eb803321c70955
parent049d919168458ac54e7fad27cd156a958b042d2f
drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer

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>
drivers/perf/arm_pmu_acpi.c