Files
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
2024-10-27 10:40:47 +01:00
..
2024-09-08 16:06:51 +02:00
2021-03-22 04:23:14 +01:00
2024-09-08 16:06:51 +02:00
2024-04-24 20:42:57 +02:00
2021-05-17 20:01:35 +02:00