summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-10 14:47:03 +0100
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-13 11:32:31 +0100
commit8509d643ffb7be508568c696c9fe45eb1f84c33c (patch)
treeaebee3d26c59016e967a69740e08cdc5384eb720 /rust/kernel/alloc
parent7d1d799d6251bc8cd1d5cfc881b0c09060b6b90d (diff)
gpiolib: clear debounce period before the "requested" flag
The debounce_period_us field is protected by the GPIOD_FLAG_REQUESTED flag, so it should be cleared before the flag, else it could potentially race with a new request. Suggested-by: Kent Gibson <warthog618@gmail.com> Closes: https://lore.kernel.org/all/20261105042905.GB8436@rigel/ Fixes: 81625f362497 ("gpio: cdev: go back to storing debounce period in the GPIO descriptor") Reviewed-by: Kent Gibson <warthog618@gmail.com> Link: https://patch.msgid.link/20261110-gpio-desc-flags-atomic-v3-3-2f463bce8086@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions