diff options
| author | Huacai Chen <[email protected]> | 2024-07-23 06:45:08 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-07-26 19:08:42 +0000 |
| commit | 81a91abab1307d7725fa4620952c0767beae7753 (patch) | |
| tree | 7cdf1ba14731a899c1a55a38001d4b0436413655 /rust/helpers/helpers.c | |
| parent | Merge tag 'net-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff) | |
| download | kernel-81a91abab1307d7725fa4620952c0767beae7753.tar.gz kernel-81a91abab1307d7725fa4620952c0767beae7753.zip | |
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 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
