Thread (2 messages) 2 messages, 2 authors, 2025-12-09

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

From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Date: 2025-12-09 09:28:00
Also in: kernel-janitors, lkml


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 <redacted>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help