aboutsummaryrefslogtreecommitdiff
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2024-02-05 11:22:29 +0100
committerGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2024-02-08 10:33:03 +0100
commit2526dffc6d65cffa32b88556bd68e4e72e889a55 (patch)
treee0c859f3b7afe2fbc2eba5c9bc5529c69435d9dc /MAINTAINERS
parentLinux 6.8-rc3 (diff)
downloadlinux-2526dffc6d65cffa32b88556bd68e4e72e889a55.tar.gz
linux-2526dffc6d65cffa32b88556bd68e4e72e889a55.tar.bz2
linux-2526dffc6d65cffa32b88556bd68e4e72e889a55.zip
gpio: remove GPIO device from the list unconditionally in error path
Since commit 48e1b4d369cf ("gpiolib: remove the GPIO device from the list when it's unregistered") we remove the GPIO device entry from the global list (used to order devices by their GPIO ranges) when unregistering the chip, not when releasing the device. It will not happen when the last reference is put anymore. This means, we need to remove it in error path in gpiochip_add_data_with_key() unconditionally, without checking if the device's .release() callback is set. Fixes: 48e1b4d369cf ("gpiolib: remove the GPIO device from the list when it's unregistered") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions