]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()
authorYuan Can <yuancan@huawei.com>
Sat, 3 Dec 2022 06:21:09 +0000 (06:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:25 +0000 (13:32 +0100)
commitffd19bdbe0ec274405d95ce067c8489bfb51e248
tree6d83eea43e82e1de752b03dfb85869205c08f60b
parentd2aaee4a002adb4deacbf761190b8f995180a985
regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()

[ Upstream commit 5a1d408e0d626ec42bfccf3048a65ff4455422d1 ]

The reg_node needs to be released through of_node_put() in the error
handling path when of_irq_get_byname() failed.

Fixes: 5a35ebdab131 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221203062109.115043-1-yuancan@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/qcom-labibb-regulator.c