diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-15 12:56:55 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-18 13:23:34 +0300 |
commit | 81570d6a7ad37033c7895811551a5a9023706eda (patch) | |
tree | 9e954489238f8d6925d09c7c8fd4f1e3ec9d8070 /tools/perf/scripts/python/syscall-counts.py | |
parent | 4e667a1968099c6deadee2313ecd648f8f0a8956 (diff) | |
download | linux-81570d6a7ad37033c7895811551a5a9023706eda.tar.xz |
gpiolib: protect gpio_chip with SRCU in array_info paths in multi get/set
During the locking rework in GPIOLIB, we omitted one important use-case,
namely: setting and getting values for GPIO descriptor arrays with
array_info present.
This patch does two things: first it makes struct gpio_array store the
address of the underlying GPIO device and not chip. Next: it protects
the chip with SRCU from removal in gpiod_get_array_value_complex() and
gpiod_set_array_value_complex().
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250215095655.23152-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions