aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-03-28 10:33:48 +0800
committerMark Brown <broonie@kernel.org>2018-03-28 10:33:48 +0800
commit9dc886a255f7b3ff5ffbf03321321bc6978f6895 (patch)
treeedc3c745184065918a60dc85677e5790612f3326 /drivers/regulator
parentLinux 4.16-rc7 (diff)
parentregulator: of: Add a missing 'of_node_put()' in an error handling path of 'of_regulator_match()' (diff)
downloadlinux-dev-9dc886a255f7b3ff5ffbf03321321bc6978f6895.tar.xz
linux-dev-9dc886a255f7b3ff5ffbf03321321bc6978f6895.zip
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/of_regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index 092ed6efb3ec..f47264fa1940 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -321,6 +321,7 @@ int of_regulator_match(struct device *dev, struct device_node *node,
dev_err(dev,
"failed to parse DT for regulator %s\n",
child->name);
+ of_node_put(child);
return -EINVAL;
}
match->of_node = of_node_get(child);