diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2015-09-17 16:50:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-17 20:39:56 +0300 |
commit | 23c3f310e897837aeb8ffe8700b803cb58e7b35d (patch) | |
tree | f50c03c0ba49f90d6ad8ca9d3ef6c90c68768c3f /drivers/irqchip/irq-dw-apb-ictl.c | |
parent | 9f8df6adf6c53abfa10e243cb289c34eb18ec581 (diff) | |
download | linux-23c3f310e897837aeb8ffe8700b803cb58e7b35d.tar.xz |
regulator: core: Correct return value check in regulator_resolve_supply
The ret pointer passed to regulator_dev_lookup is only filled with a
valid error code if regulator_dev_lookup returned NULL. Currently
regulator_resolve_supply checks this ret value before it checks if a
regulator was returned, this can result in valid regulator lookups being
ignored.
Fixes: 6261b06de565 ("regulator: Defer lookup of supply to regulator_get")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/irqchip/irq-dw-apb-ictl.c')
0 files changed, 0 insertions, 0 deletions