pinctrl: keembay: fix double free in keembay_build_functions()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 4 Sep 2025 18:58:54 +0000 (21:58 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Sep 2025 12:24:12 +0000 (14:24 +0200)
commit6c3442b3b692769c9bced80da58e0130b9fa16cc
treefd34618985f6dc9ac8f4711cc608f48432081cb4
parent83d12f08ddfba09db414b611195af23fdeb70836
pinctrl: keembay: fix double free in keembay_build_functions()

This kfree() was accidentally left over when we converted to devm_
and it would lead to a double free.  Delete it.

Fixes: 995bc9f4826e ("pinctrl: keembay: release allocated memory in detach path")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-keembay.c