]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: of: Add a missing 'of_node_put()' in an error handling path of 'of_regulat...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 26 Jan 2018 22:13:44 +0000 (23:13 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 12 Feb 2018 12:05:31 +0000 (12:05 +0000)
commit30966861a7a2051457be8c49466887d78cc47e97
treecd1a14e963fac14c37ebfb33c72db1b921c21fa2
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
regulator: of: Add a missing 'of_node_put()' in an error handling path of 'of_regulator_match()'

If an unlikely failure in 'of_get_regulator_init_data()' occurs, we must
release the reference on the current 'child' node before returning.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/of_regulator.c