linux/kernel/irq
Jinjie Ruan 5f994f5341 genirq/msi: Fix off-by-one error in msi_domain_alloc()
The error path in msi_domain_alloc(), frees the already allocated MSI
interrupts in a loop, but the loop condition terminates when the index
reaches zero, which fails to free the first allocated MSI interrupt at
index zero.

Check for >= 0 so that msi[0] is freed as well.

Fixes: f3cf8bb0d6 ("genirq: Add generic msi irq domain support")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241026063639.10711-1-ruanjinjie@huawei.com
2024-10-27 10:40:47 +01:00
..
Kconfig
Makefile
affinity.c
autoprobe.c
chip.c genirq: Use cpumask_intersects() 2024-09-08 16:06:51 +02:00
cpuhotplug.c genirq/cpuhotplug: Use cpumask_intersects() 2024-09-06 16:28:39 +02:00
debug.h
debugfs.c
devres.c
dummychip.c
generic-chip.c
handle.c
internals.h
ipi-mux.c
ipi.c
irq_sim.c genirq/irq_sim: Remove unused irq_sim_work_ctx:: Irq_base 2024-08-08 17:15:01 +02:00
irqdesc.c genirq/irqdesc: Honor caller provided affinity in alloc_desc() 2024-08-07 17:27:00 +02:00
irqdomain.c irqdomain: Use IS_ERR_OR_NULL() in irq_domain_trim_hierarchy() 2024-08-29 16:42:07 +02:00
manage.c genirq: Get rid of global lock in irq_do_set_affinity() 2024-08-27 13:54:15 +02:00
matrix.c
migration.c genirq: Use cpumask_intersects() 2024-09-08 16:06:51 +02:00
msi.c genirq/msi: Fix off-by-one error in msi_domain_alloc() 2024-10-27 10:40:47 +01:00
pm.c
proc.c genirq/proc: Change the return value for set affinity permission error 2024-08-29 16:42:06 +02:00
resend.c
settings.h
spurious.c
timings.c