All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: acpi_probe: fix error return path
@ 2015-03-18 16:01 Vinod Koul
  2015-03-19  0:57 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Vinod Koul @ 2015-03-18 16:01 UTC (permalink / raw)
  To: alsa-devel; +Cc: Vinod Koul, broonie, lgirdwood, Dan Carpenter

Fix the sst_acpi_probe memory allocation error path by setting right error
code and initiating the cleanup insteadof just returning

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 sound/soc/intel/sst/sst_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/sst/sst_acpi.c b/sound/soc/intel/sst/sst_acpi.c
index b782dfdcdbba..b536ddd2517d 100644
--- a/sound/soc/intel/sst/sst_acpi.c
+++ b/sound/soc/intel/sst/sst_acpi.c
@@ -309,7 +309,7 @@ static int sst_acpi_probe(struct platform_device *pdev)
 	ctx->shim_regs64 = devm_kzalloc(ctx->dev, sizeof(*ctx->shim_regs64),
 					GFP_KERNEL);
 	if (!ctx->shim_regs64) {
-		return -ENOMEM;
+		ret = -ENOMEM;
 		goto do_sst_cleanup;
 	}
 
-- 
1.7.9.5

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

* Re: [PATCH] ASoC: Intel: acpi_probe: fix error return path
  2015-03-18 16:01 [PATCH] ASoC: Intel: acpi_probe: fix error return path Vinod Koul
@ 2015-03-19  0:57 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2015-03-19  0:57 UTC (permalink / raw)
  To: Vinod Koul; +Cc: alsa-devel, lgirdwood, Dan Carpenter


[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]

On Wed, Mar 18, 2015 at 09:31:38PM +0530, Vinod Koul wrote:
> Fix the sst_acpi_probe memory allocation error path by setting right error
> code and initiating the cleanup insteadof just returning

Applied, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2015-03-19  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 16:01 [PATCH] ASoC: Intel: acpi_probe: fix error return path Vinod Koul
2015-03-19  0:57 ` 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.