ASoC: Intel: acpi_probe: fix error return path
authorVinod Koul <vinod.koul@intel.com>
Wed, 18 Mar 2015 16:01:38 +0000 (21:31 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 19 Mar 2015 00:57:10 +0000 (00:57 +0000)
commitbdc455b512c880292d7f145e73aed5e37a90f6e4
tree5f933593c72329045f95b860cb60024b90f7240a
parent3fe0607a04ed7deea7c048052fd63b8670e7a176
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>
sound/soc/intel/sst/sst_acpi.c