diff options
| author | Greentime Hu <[email protected]> | 2020-10-29 02:37:38 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2020-11-01 11:52:27 +0000 |
| commit | f9ac7bbd6e4540dcc6df621b9c9b6eb2e26ded1d (patch) | |
| tree | b8c3b8da8ec244e06616053d8df77ef986b219f0 /scripts/gcc-plugins/gcc-common.h | |
| parent | irqchip/sifive-plic: Fix broken irq_set_affinity() callback (diff) | |
| download | kernel-f9ac7bbd6e4540dcc6df621b9c9b6eb2e26ded1d.tar.gz kernel-f9ac7bbd6e4540dcc6df621b9c9b6eb2e26ded1d.zip | |
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: f1ad1133b18f ("irqchip/sifive-plic: Add support for multiple PLICs")
Signed-off-by: Greentime Hu <[email protected]>
[maz: rewrote commit message]
Signed-off-by: Marc Zyngier <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
