Skip to content

Commit a4a751f

Browse files
committed
regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()
Bugzilla: https://bugzilla.redhat.com/2157968 commit cf34ac6 Author: Yuan Can <yuancan@huawei.com> Date: Sat Dec 3 06:21:09 2022 +0000 regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe() The reg_node needs to be released through of_node_put() in the error handling path when of_irq_get_byname() failed. Fixes: 390af53 ("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: Adrien Thierry <athierry@redhat.com>
1 parent a2a1228 commit a4a751f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/regulator/qcom-labibb-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static int qcom_labibb_regulator_probe(struct platform_device *pdev)
822822
if (irq == 0)
823823
irq = -EINVAL;
824824

825+
of_node_put(reg_node);
825826
return dev_err_probe(vreg->dev, irq,
826827
"Short-circuit irq not found.\n");
827828
}

0 commit comments

Comments
 (0)