aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorAndrĂ© Draszik <[email protected]>2025-07-15 16:00:20 +0000
committerBartosz Golaszewski <[email protected]>2025-07-17 07:22:46 +0000
commit11ff5e06e02326a7c87aaa73dbffaed94918261d (patch)
tree7aae8a8a7be3538ab6189f2126c6182320b71979 /tools/lib/bpf/libbpf.c
parentMerge tag 'intel-gpio-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-11ff5e06e02326a7c87aaa73dbffaed94918261d.tar.gz
kernel-11ff5e06e02326a7c87aaa73dbffaed94918261d.zip
gpiolib: devres: release GPIOs in devm_gpiod_put_array()
devm_gpiod_put_array() is meant to undo the effects of devm_gpiod_get_array() - in particular, it should release the GPIOs contained in the array acquired with the latter. It is meant to be the resource-managed version of gpiod_put_array(), and it should behave similar to the non-array version devm_gpiod_put(). Since commit d1d52c6622a6 ("gpiolib: devres: Finish the conversion to use devm_add_action()") it doesn't do that anymore, it just removes the devres action and frees associated memory, but it doesn't actually release the GPIOs. Fix by switching from devm_remove_action() to devm_release_action(), which will in addition invoke the action to release the GPIOs. Fixes: d1d52c6622a6 ("gpiolib: devres: Finish the conversion to use devm_add_action()") Signed-off-by: AndrĂ© Draszik <[email protected]> Reported-by: Wattson CI <[email protected]> Reported-by: Samuel Wu <[email protected]> Link: https://lore.kernel.org/r/20250715-gpiolib-devres-put-array-fix-v1-1-970d82a8c887@linaro.org Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions