aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-11-02 01:34:41 -0500
committerMark Brown <broonie@kernel.org>2014-11-02 06:07:28 -0500
commit22a236b4d07b5c5cfdc5db9e87d479d32281cfe6 (patch)
tree14c3d0d5df04b82cf75c09e02205ce7105a71439 /sound/soc/intel
parentc1e99c913be4294e63b5e74b197b8a8c86e6e67b (diff)
ASoC: Intel: fix missing mutex
on error in block prepare, we were returning the error code while still holding the mutex. We are releasing the mutex in this patch before return. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r--sound/soc/intel/sst-firmware.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index c451398b058c..4a5bde9c686b 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -1120,6 +1120,7 @@ int sst_block_alloc_scratch(struct sst_dsp *dsp)
1120 ret = block_list_prepare(dsp, &dsp->scratch_block_list); 1120 ret = block_list_prepare(dsp, &dsp->scratch_block_list);
1121 if (ret < 0) { 1121 if (ret < 0) {
1122 dev_err(dsp->dev, "error: scratch block prepare failed\n"); 1122 dev_err(dsp->dev, "error: scratch block prepare failed\n");
1123 mutex_unlock(&dsp->mutex);
1123 return ret; 1124 return ret;
1124 } 1125 }
1125 1126