diff options
author | Liu Peibao <[email protected]> | 2023-06-14 19:59:33 +0800 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2023-06-16 12:59:28 +0100 |
commit | 783422e704ca0fa41cb2fe9ed79e46b6fe7eae29 (patch) | |
tree | a342b8c35767719fcbcc17248d77da6af72191ce /lib/test_fortify/write_overflow-memcpy.c | |
parent | f679616565f1cf1a4acb245dbc0032dafcd40637 (diff) |
irqchip/loongson-pch-pic: Fix potential incorrect hwirq assignment
In DeviceTree path, when ht_vec_base is not zero, the hwirq of PCH PIC
will be assigned incorrectly. Because when pch_pic_domain_translate()
adds the ht_vec_base to hwirq, the hwirq does not have the ht_vec_base
subtracted when calling irq_domain_set_info().
The ht_vec_base is designed for the parent irq chip/domain of the PCH PIC.
It seems not proper to deal this in callbacks of the PCH PIC domain and
let's put this back like the initial commit ef8c01eb64ca ("irqchip: Add
Loongson PCH PIC controller").
Fixes: bcdd75c596c8 ("irqchip/loongson-pch-pic: Add ACPI init support")
Cc: [email protected]
Reviewed-by: Huacai Chen <[email protected]>
Signed-off-by: Liu Peibao <[email protected]>
Signed-off-by: Jianmin Lv <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions