Skip to content
Commit f9ac7bbd authored by Greentime Hu's avatar Greentime Hu Committed by Marc Zyngier
Browse files

irqchip/sifive-plic: Fix chip_data access within a hierarchy



The plic driver crashes in plic_irq_unmask() when the interrupt is within a
hierarchy, as it picks the top-level chip_data instead of its local one.

Using irq_data_get_irq_chip_data() instead of irq_get_chip_data() solves
the issue for good.

Fixes: f1ad1133 ("irqchip/sifive-plic: Add support for multiple PLICs")
Signed-off-by: default avatarGreentime Hu <greentime.hu@sifive.com>
[maz: rewrote commit message]
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
Link: https://lore.kernel.org/r/20201029023738.127472-1-greentime.hu@sifive.com
parent a7480c5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment