[PATCH] irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc()

Claudiu Beznea claudiu.beznea at tuxon.dev
Tue Dec 9 01:27:57 PST 2025



On 12/9/25 08:54, Dan Carpenter wrote:
> If the irq_domain_translate_twocell() function sets "hwirq" to >=
> MCHP_EIC_NIRQ (2) then it would result in an out of bounds access.
> The code here checks for invalid values, but doesn't set the error
> code.  Return -EINVAL in that case, instead of returning success.
> 
> Fixes: 00fa3461c86d ("irqchip/mchp-eic: Add support for the Microchip EIC")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Reviewed-by: Claudiu Beznea <claudiu.beznea at tuxon.dev>




More information about the linux-arm-kernel mailing list