mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
irqchip/gic-v5: Check for NULL LPI domain on domain teardown
In gicv5_free_lpi_domain() the LPI domain being freed can be NULL.
Check it and return before trying to free it if it is.
Fixes: 0f01013258 ("irqchip/gic-v5: Add GICv5 LPI/IPI support")
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://sashiko.dev/#/message/20260810104747.E5CE71F000E9%40smtp.kernel.org
Link: https://patch.msgid.link/20260812-gicv5-7-2-fixes-v1-2-3743e82c69a4@kernel.org
This commit is contained in:
parent
328affc639
commit
aa079dbf4c
|
|
@ -862,6 +862,9 @@ void __init gicv5_init_lpi_domain(void)
|
|||
|
||||
void __init gicv5_free_lpi_domain(void)
|
||||
{
|
||||
if (!gicv5_global_data.lpi_domain)
|
||||
return;
|
||||
|
||||
irq_domain_remove(gicv5_global_data.lpi_domain);
|
||||
gicv5_global_data.lpi_domain = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user