Skip to content
Commit 2e99b73a authored by Bibo Mao's avatar Bibo Mao Committed by Marc Zyngier
Browse files

irqchip/loongson-eiointc: Fix return value checking of eiointc_index



Return value of function eiointc_index is int, however it is converted
into uint32_t and then compared smaller than zero, this will cause logic
problem.

Fixes: dd281e1a ("irqchip: Add Loongson Extended I/O interrupt controller support")
Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230811095805.2974722-2-maobibo@loongson.cn
parent 6eaae198
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