aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sbitmap.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-12-09 09:54:16 +0300
committerThomas Gleixner <tglx@linutronix.de>2025-12-10 12:11:06 +0900
commit7dbc0d40d8347bd9de55c904f59ea44bcc8dedb7 (patch)
treedd6308f2fa01c40508705c606d90b71c33619376 /lib/sbitmap.c
parent55026a9670ce8b7b3d74f7d570de1382cbfb395d (diff)
downloadtip-7dbc0d40d8347bd9de55c904f59ea44bcc8dedb7.tar.gz
irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc()irq-urgent-2025-12-12
If irq_domain_translate_twocell() sets "hwirq" to >= MCHP_EIC_NIRQ (2) then it results in an out of bounds access. The code 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@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> Link: https://patch.msgid.link/aTfHmOz6IBpTIPU5@stanley.mountain
Diffstat (limited to 'lib/sbitmap.c')
0 files changed, 0 insertions, 0 deletions