aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorGatien Chevallier <[email protected]>2025-05-30 23:09:23 +0000
committerDmitry Torokhov <[email protected]>2025-05-30 23:15:42 +0000
commit8f38219fa139623c29db2cb0f17d0a197a86e344 (patch)
tree65cf3ba1eab5dc039ec05ef27fcb44bfdf091e0e /rust/helpers/mutex.c
parentInput: gpio-keys - fix a sleep while atomic with PREEMPT_RT (diff)
downloadkernel-8f38219fa139623c29db2cb0f17d0a197a86e344.tar.gz
kernel-8f38219fa139623c29db2cb0f17d0a197a86e344.zip
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: 019002f20cb5 ("Input: gpio-keys - use hrtimer for release timer") Signed-off-by: Gatien Chevallier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions