diff options
author | Huacai Chen <[email protected]> | 2024-07-23 14:45:08 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-07-26 21:08:42 +0200 |
commit | 81a91abab1307d7725fa4620952c0767beae7753 (patch) | |
tree | 7cdf1ba14731a899c1a55a38001d4b0436413655 /lib/memory-notifier-error-inject.c | |
parent | 1722389b0d863056d78287a120a1d6cadb8d4f7b (diff) |
irqchip/loongarch-cpu: Fix return value of lpic_gsi_to_irq()
lpic_gsi_to_irq() should return a valid Linux interrupt number if
acpi_register_gsi() succeeds, and return 0 otherwise. But lpic_gsi_to_irq()
converts a negative return value of acpi_register_gsi() to a positive value
silently.
Convert the return value explicitly.
Fixes: e8bba72b396c ("irqchip / ACPI: Introduce ACPI_IRQ_MODEL_LPIC for LoongArch")
Reported-by: Miao Wang <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Jiaxun Yang <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions