projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe0607
)
ASoC: Intel: acpi_probe: fix error return path
author
Vinod Koul
<vinod.koul@intel.com>
Wed, 18 Mar 2015 16:01:38 +0000
(21:31 +0530)
committer
Mark Brown
<broonie@kernel.org>
Thu, 19 Mar 2015 00:57:10 +0000
(
00:57
+0000)
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>
sound/soc/intel/sst/sst_acpi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/sst/sst_acpi.c
b/sound/soc/intel/sst/sst_acpi.c
index b3360139c41a905ba9575574d42b7477dd0cbc26..98c2444dece33f35977ac8c659d4ac36616fb42a 100644
(file)
--- a/
sound/soc/intel/sst/sst_acpi.c
+++ b/
sound/soc/intel/sst/sst_acpi.c
@@
-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) {
- ret
urn
-ENOMEM;
+ ret
=
-ENOMEM;
goto do_sst_cleanup;
}