Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/perf: arm_pmu: Fix NULL pointer dereference during probe
Patch 7f1d642 ("drivers/perf: arm-pmu: Fix handling of SPI lacking interrupt-affinity property") unintended also fixes perf_event support for bcm2835 which doesn't have PMU interrupts. Unfortunately this change introduce a NULL pointer dereference on bcm2835, because irq_is_percpu always expected to be called with a valid IRQ. So fix this regression by validating the IRQ before. Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Stefan Wahren <[email protected]> Fixes: 7f1d642 ("drivers/perf: arm-pmu: Fix handling of SPI lacking "interrupt-affinity" property") Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
- Loading branch information