Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 230a5a1c authored by Mark Brown's avatar Mark Brown
Browse files

regulator: Fix double free in devm_regulator_put()

parent 8b96de31
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1461,9 +1461,7 @@ void devm_regulator_put(struct regulator *regulator)

	rc = devres_release(regulator->dev, devm_regulator_release,
			    devm_regulator_match, regulator);
	if (rc == 0)
		regulator_put(regulator);
	else
	if (rc != 0)
		WARN_ON(rc);
}
EXPORT_SYMBOL_GPL(devm_regulator_put);