regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()
PATCH 1/1 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.
--- drivers/regulator/qcom-labibb-regulator.c | 1 + 1 file changed, 1 insertion(+)
drivers/regulator/qcom-labibb-regulator.c +1 -0
@@ -822,6 +822,7 @@ static int qcom_labibb_regulator_probe(struct platform_device *pdev)if (irq ==0 ) irq = -EINVAL ; +of_node_put (reg_node);return dev_err_probe (vreg->dev, irq,"Short-circuit irq not found.\n" ); }
Signature · 1 line
2.17.1
Mark Brown
maintainerQuoted 4 lines · Yuan Can
The
reg_nodeneeds to be released throughof_node_put()in the error handling path whenof_irq_get_byname()failed.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()
commit: cf34ac6aa2b12fb0c3aacfdcae8acd7904b949ec
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark