]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf209e9c4f7becf0d061fe30d8c8daa94cfc7b699
treee8a2e685ca1660789d369cf830eb803321c70955
parentfbee0cba872c02ae1b1dfe057657dbc0819c21f1
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