]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: cs42l43: Fix leaked pm reference on error path
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 8 May 2026 14:34:52 +0000 (15:34 +0100)
committerLinus Walleij <linusw@kernel.org>
Wed, 27 May 2026 12:24:19 +0000 (14:24 +0200)
commit1cb73b83ab6dec8159d0280345a46fbb282c378f
tree4df03b8c69639a1bf425b287263f31ff50be47b6
parentce4e27247ca643645c6d3043aad1c1c67bf7fdac
pinctrl: cs42l43: Fix leaked pm reference on error path

Returning directly if the regmap_update_bits() fails causes a pm runtime
reference to be leaked, let things run to the end of the function
instead.

Fixes: e52c741907fb ("pinctrl: cirrus: cs42l43: use new GPIO line value setter callbacks")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/cirrus/pinctrl-cs42l43.c