diff options
author | Lukas Wunner <lukas@wunner.de> | 2024-01-15 18:05:26 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-15 20:41:29 +0300 |
commit | 832b371097eb928d077c827b8f117bf5b99d35c0 (patch) | |
tree | da67fb5f889b1329c5f3abc74474b26f03d37b45 /scripts/gdb/linux/tasks.py | |
parent | d460e9c2075164e9b1fa9c4c95f8c05517bd8752 (diff) | |
download | linux-832b371097eb928d077c827b8f117bf5b99d35c0.tar.xz |
gpiolib: Fix scope-based gpio_device refcounting
Commit 9e4555d1e54a ("gpiolib: add support for scope-based management to
gpio_device") sought to add scope-based gpio_device refcounting, but
erroneously forgot a negation of IS_ERR_OR_NULL().
As a result, gpio_device_put() is not called if the gpio_device pointer
is valid (meaning the ref is leaked), but only called if the pointer is
NULL or an ERR_PTR().
While at it drop a superfluous trailing semicolon.
Fixes: 9e4555d1e54a ("gpiolib: add support for scope-based management to gpio_device")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions