Files
linux/drivers
Jon Hunter 3e19487b9b regulator: core: Clear the supply pointer if enabling fails
commit 8e5356a736 upstream.

During the resolution of a regulator's supply, we may attempt to enable
the supply if the regulator itself is already enabled. If enabling the
supply fails, then we will call _regulator_put() for the supply.
However, the pointer to the supply has not been cleared for the
regulator and this will cause a crash if we then unregister the
regulator and attempt to call regulator_put() a second time for the
supply. Fix this by clearing the supply pointer if enabling the supply
after fails when resolving the supply for a regulator.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-02 21:19:49 -07:00
..
2017-04-21 09:30:07 +02:00
2017-05-02 21:19:47 -07:00
2017-05-02 21:19:48 -07:00
2017-04-12 12:38:33 +02:00
2016-09-24 10:07:35 +02:00
2017-01-12 11:22:47 +01:00
2017-02-23 17:43:10 +01:00
2017-04-21 09:30:07 +02:00
2017-03-30 09:35:17 +02:00