Commit 8f38219f authored by Gatien Chevallier's avatar Gatien Chevallier Committed by Dmitry Torokhov
Browse files

Input: gpio-keys - fix possible concurrent access in gpio_keys_irq_timer()



gpio_keys_irq_isr() and gpio_keys_irq_timer() access the same resources.
There could be a concurrent access if a GPIO interrupt occurs in parallel
of a HR timer interrupt.

Guard back those resources with a spinlock.

Fixes: 019002f2 ("Input: gpio-keys - use hrtimer for release timer")
Signed-off-by: default avatarGatien Chevallier <gatien.chevallier@foss.st.com>
Link: https://lore.kernel.org/r/20250528-gpio_keys_preempt_rt-v2-2-3fc55a9c3619@foss.st.com


Cc: stable@vger.kernel.org
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent f4a8f561
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment