]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:47 +0000 (08:25 +0100)
commita1be7711c4ca364c01bd2ea2e546c46c35ac139a
treea4f0dc60f67e0ee7875eccc8cea21d1cf8fd410e
parente92e551dfd7389a677cbea6dd0b8b8dae7204fed
drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer

[ Upstream commit f209e9c4f7becf0d061fe30d8c8daa94cfc7b699 ]

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