Zenghui Yu
3eecd40d13
irqchip/loongson-pch-msi: Fix off-by-one on allocation error path
...
[ Upstream commit b327708798809328f21da8dc14cc8883d1e8a4b3 ]
When pch_msi_parent_domain_alloc() returns an error, there is an off-by-one
in the number of interrupts to be freed.
Fix it by passing the number of successfully allocated interrupts, instead of the
relative index of the last allocated one.
Fixes: 632dcc2c75ef ("irqchip: Add Loongson PCH MSI controller")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://lore.kernel.org/r/20240327142334.1098-1-yuzenghui@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:03:10 +02:00
..
2021-06-11 14:32:12 +01:00
2021-06-10 13:09:19 +01:00
2024-06-12 11:03:10 +02:00
2022-07-01 14:26:13 +01:00
2022-05-06 12:18:37 +01:00
2022-05-04 16:37:48 +01:00
2022-05-04 16:37:48 +01:00
2021-10-26 10:13:31 +01:00
2019-06-19 17:09:55 +02:00
2021-06-10 13:09:19 +01:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2023-08-03 10:24:14 +02:00
2021-10-20 20:06:33 +01:00
2023-03-10 09:33:07 +01:00
2024-02-23 09:12:44 +01:00
2021-10-26 10:13:31 +01:00
2019-06-19 17:09:55 +02:00
2022-05-04 16:49:47 +01:00
2021-11-12 16:09:50 +00:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2022-02-15 11:25:46 +00:00
2023-06-21 16:00:54 +02:00
2023-06-21 16:00:52 +02:00
2022-12-31 13:31:57 +01:00
2022-06-09 17:36:57 +01:00
2022-09-07 14:47:00 +02:00
2020-07-28 15:51:32 +01:00
2021-12-09 11:52:20 +01:00
2024-05-02 16:29:29 +02:00
2022-09-07 14:47:00 +02:00
2023-06-21 16:00:52 +02:00
2022-09-09 10:59:02 +01:00
2022-07-20 12:05:17 +01:00
2021-06-10 13:09:19 +01:00
2021-10-26 10:13:31 +01:00
2021-06-10 13:09:19 +01:00
2021-06-10 13:09:19 +01:00
2021-06-11 14:32:12 +01:00
2021-12-16 15:19:43 +00:00
2022-02-09 13:36:53 +00:00
2022-05-04 16:44:51 +01:00
2022-10-04 23:35:36 +01:00
2021-12-16 15:19:52 +00:00
2021-06-10 13:09:19 +01:00
2022-04-25 20:53:18 +02:00
2023-07-19 16:20:58 +02:00
2022-06-10 14:51:35 +02:00
2023-05-17 11:53:53 +02:00
2024-02-23 09:12:35 +01:00
2021-06-10 13:09:19 +01:00
2021-06-10 13:09:19 +01:00
2022-12-31 13:31:57 +01:00
2022-07-20 12:09:20 +01:00
2024-06-12 11:03:10 +02:00
2023-07-19 16:22:09 +02:00
2022-02-15 11:25:46 +00:00
2021-06-10 13:09:19 +01:00
2022-12-21 17:48:04 +01:00
2022-09-07 14:47:00 +02:00
2021-12-16 22:16:39 +01:00
2021-10-25 09:02:18 +01:00
2023-06-21 16:00:52 +02:00
2021-07-09 10:18:58 +01:00
2023-05-30 14:03:20 +01:00
2021-10-26 10:13:31 +01:00
2021-06-10 13:09:19 +01:00
2021-04-07 13:26:00 +01:00
2021-03-22 04:23:14 +01:00
2021-08-12 08:15:15 +01:00
2023-03-10 09:33:00 +01:00
2021-12-16 22:16:39 +01:00
2021-07-26 18:04:11 +01:00
2022-02-15 11:25:46 +00:00
2021-06-10 13:09:19 +01:00
2021-10-26 10:13:31 +01:00
2022-03-23 17:35:57 -07:00
2021-10-26 10:13:31 +01:00
2022-06-28 17:31:15 +09:00
2021-10-26 10:13:31 +01:00
2020-09-25 16:57:33 +01:00
2021-07-26 18:01:27 +01:00
2021-07-09 10:18:58 +01:00
2021-06-10 13:09:19 +01:00
2022-04-05 16:33:13 +01:00
2021-10-26 10:13:31 +01:00
2022-09-28 14:17:10 +01:00
2022-02-09 13:36:44 +00:00
2022-02-09 13:36:53 +00:00
2021-09-22 14:37:59 +01:00
2024-04-03 15:19:45 +02:00
2023-11-08 14:10:57 +01:00
2021-10-26 10:13:31 +01:00
2024-03-01 13:26:32 +01:00
2020-12-18 17:43:47 +00:00
2022-05-04 16:33:17 +01:00
2022-07-08 14:23:57 +02:00
2019-06-19 17:09:55 +02:00
2023-11-08 14:10:57 +01:00
2021-10-26 10:13:31 +01:00
2022-05-04 16:36:59 +01:00
2021-06-10 13:09:19 +01:00
2021-06-10 13:09:19 +01:00
2022-06-15 17:41:11 +02:00
2021-12-16 22:16:40 +01:00
2023-03-10 09:33:00 +01:00
2022-02-15 11:25:46 +00:00
2022-06-09 17:41:57 +01:00
2022-02-15 11:25:46 +00:00
2019-06-19 17:09:55 +02:00
2021-10-26 10:13:31 +01:00
2021-10-26 10:13:31 +01:00
2022-12-31 13:31:57 +01:00
2022-03-04 14:32:57 +00:00
2022-05-04 16:35:38 +01:00
2021-10-26 10:13:31 +01:00
2023-03-10 09:32:59 +01:00
2023-05-24 17:32:36 +01:00
2022-09-29 17:11:37 +01:00
2021-06-10 13:09:19 +01:00
2022-03-01 10:06:25 +00:00
2021-12-16 13:29:44 +00:00