]> git.hungrycats.org Git - linux/commit
regulator: gpio: Fix some error handling paths in 'gpio_regulator_probe()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 13 Mar 2018 20:33:11 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 06:17:33 +0000 (08:17 +0200)
commit9880c68dd10bf2a2c9ca5731dd14658c1341cb6d
tree6412d520feffcbb059768a0a6d97854afb84c206
parentc3a8ca27139b955677b1832300e50bf8c3e15d26
regulator: gpio: Fix some error handling paths in 'gpio_regulator_probe()'

[ Upstream commit ed8cffda27dea6fd3dafb3ee881c5a786edac9ca ]

Re-order error handling code and gotos to avoid leaks in error handling
paths.

Fixes: 9f946099fe19 ("regulator: gpio: fix parsing of gpio list")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/gpio-regulator.c