summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-10 14:47:04 +0100
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-13 11:32:31 +0100
commit63d7aedf6add8a24415af4c010588f63fa7296ab (patch)
tree8e19d73b1eb9a2a6407752dcedd527c410615c3e /rust/kernel
parent8509d643ffb7be508568c696c9fe45eb1f84c33c (diff)
gpiolib: don't overwrite the entire flags field in gpiod_free_commit()
Use set_mask_bits() to clear all request-related flags in one go instead of risking racing with concurrent users and overwriting any changes they could have done between READ_ONCE() and WRITE_ONCE(). Cc: stable@vger.kernel.org Fixes: 35b545332b80 ("gpio: remove gpio_lock") Reviewed-by: Kent Gibson <warthog618@gmail.com> Link: https://patch.msgid.link/20261110-gpio-desc-flags-atomic-v3-4-2f463bce8086@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions