]> www.infradead.org Git - users/jedix/linux-maple.git/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)
committerMark Brown <broonie@kernel.org>
Wed, 14 Mar 2018 16:37:41 +0000 (09:37 -0700)
commited8cffda27dea6fd3dafb3ee881c5a786edac9ca
tree46cb7abf33d55e210a6a8ea5046fb11021a05e15
parent11da04af0d3b4c24ab057dd17f54dbc854d735de
regulator: gpio: Fix some error handling paths in 'gpio_regulator_probe()'

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>
drivers/regulator/gpio-regulator.c