[PATCH v2 31/42] ACPICA: events: Add missing event mutex to AcpiEvClearGpeDispatchByOwner()
From: Maciej Wieczor-Retman
Date: Fri Nov 20 2026 - 12:23:16 EST
While AcpiEvClearGpeDispatchByOwner() holds the global spinlock there
are other GPE related functions that work on GPE blocks and they acquire
the ACPI_MTX_EVENTS mutex.
Acquire the same mutex around handling GPE blocks to avoid any races
between the different functions.
Link: https://github.com/acpica/acpica/commit/fa543fc1bab6
Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@xxxxxxxxx>
---
drivers/acpi/acpica/evgpe.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index 93e205c0709e..f74805507529 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -576,6 +576,11 @@ acpi_status acpi_ev_clear_gpe_dispatch_by_owner(acpi_owner_id owner_id)
return_ACPI_STATUS(AE_OK);
}
+ status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS);
+ if (ACPI_FAILURE(status)) {
+ return_ACPI_STATUS(status);
+ }
+
flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock);
/* Walk all GPE interrupt blocks */
@@ -629,6 +634,7 @@ acpi_status acpi_ev_clear_gpe_dispatch_by_owner(acpi_owner_id owner_id)
}
acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
+ (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status);
}
--
2.56.0