ASoC: Intel: acpi_probe: fix error return path
Subsystems (3)
PATCH 1/1 ASoC: Intel: acpi_probe: fix error return path
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 <[email protected]>
Reported-by Dan Carpenter <[email protected]>
--- sound/soc/intel/sst/sst_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/sst/sst_acpi.c +1 -1
@@ -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; }
Signature · 1 line
1.7.9.5
Quoted 2 lines · Vinod Koul
Fix the
sst_acpi_probememory allocation error path by setting right error code and initiating the cleanup insteadof just returning
Applied, thanks.