aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/surface_aggregator_registry.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2024-03-27 22:45:24 +0100
committerHans de Goede <[email protected]>2024-04-08 15:22:23 +0200
commit10eba55febd4784cf54bbb411636f3929723bfc0 (patch)
tree8d8924428a7e8da6cd4d3435b3a637aa3220a733 /drivers/platform/surface/surface_aggregator_registry.c
parent83cfe6d8b6b986d430941d22797ca636a6789ba9 (diff)
platform/x86: quickstart: Fix race condition when reporting input event
Since commit e2ffcda16290 ("ACPI: OSL: Allow Notify () handlers to run on all CPUs"), the ACPI core allows multiple notify calls to be active at the same time. This means that two instances of quickstart_notify() running at the same time can mess which each others input sequences. Fix this by protecting the input sequence with a mutex. Compile-tested only. Fixes: afd66f2a739e ("platform/x86: Add ACPI quickstart button (PNP0C32) driver") Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_registry.c')
0 files changed, 0 insertions, 0 deletions