pinctrl: nxp: Fix resource leaks in for_each_child_of_node() loops
authorLu Hongfei <luhongfei@vivo.com>
Tue, 6 Jun 2023 07:02:01 +0000 (15:02 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Jun 2023 07:24:51 +0000 (09:24 +0200)
commitb2132afec09772f1f2f0ddbe223be41431e46924
tree92758ef486bc7da91b1a933d29d7b37477e33e94
parente3275a89e5c7c4a78522357b8b677b1a79d4d011
pinctrl: nxp: Fix resource leaks in for_each_child_of_node() loops

Ensure child node references are decremented properly in the error path.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Link: https://lore.kernel.org/r/20230606070201.14249-1-luhongfei@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nxp/pinctrl-s32cc.c