mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 20:47:04 +07:00
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 Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3fe0607a04
commit
bdc455b512
@ -309,7 +309,7 @@ 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user