All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: core: Fix missing error return from regulator_bulk_get()
@ 2022-08-09 21:27 Douglas Anderson
  2022-08-10 16:04 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Anderson @ 2022-08-09 21:27 UTC (permalink / raw)
  To: Mark Brown; +Cc: Douglas Anderson, Liam Girdwood, linux-kernel

In commit 6eabfc018e8d ("regulator: core: Allow specifying an initial
load w/ the bulk API") I changed the error handling but had a subtle
that caused us to always return no error even if there was an
error. Fix it.

Fixes: 6eabfc018e8d ("regulator: core: Allow specifying an initial load w/ the bulk API")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/regulator/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 7150b1d0159e..d8373cb04f90 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -4784,10 +4784,10 @@ int regulator_bulk_get(struct device *dev, int num_consumers,
 		consumers[i].consumer = regulator_get(dev,
 						      consumers[i].supply);
 		if (IS_ERR(consumers[i].consumer)) {
-			consumers[i].consumer = NULL;
 			ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer),
 					    "Failed to get supply '%s'",
 					    consumers[i].supply);
+			consumers[i].consumer = NULL;
 			goto err;
 		}
 
-- 
2.37.1.559.g78731f0fdb-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: core: Fix missing error return from regulator_bulk_get()
  2022-08-09 21:27 [PATCH] regulator: core: Fix missing error return from regulator_bulk_get() Douglas Anderson
@ 2022-08-10 16:04 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-08-10 16:04 UTC (permalink / raw)
  To: Douglas Anderson; +Cc: Liam Girdwood, linux-kernel

On Tue, 9 Aug 2022 14:27:45 -0700, Douglas Anderson wrote:
> In commit 6eabfc018e8d ("regulator: core: Allow specifying an initial
> load w/ the bulk API") I changed the error handling but had a subtle
> that caused us to always return no error even if there was an
> error. Fix it.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: core: Fix missing error return from regulator_bulk_get()
      commit: d511e8a7e850db567cd7f633288aa96a19508e5b

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-10 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 21:27 [PATCH] regulator: core: Fix missing error return from regulator_bulk_get() Douglas Anderson
2022-08-10 16:04 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.