diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2018-10-04 11:31:28 +0300 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:51:55 +0800 |
commit | 9e49bf4e07ed80f9038c5a3e60dfa466a8270220 (patch) | |
tree | b2cdceebab10f4ffa02a8ef36674f2525d7f713b /sound/soc/fsl/fsl_dsp_proxy.c | |
parent | ea43dedbf9632fefbfc6d60f209ad7732da01ed5 (diff) |
MLK-18497-2: ASoC: fsl: dsp_proxy: Add missing xf_unlock
xf_cmd_send_recv function returns with a lock taken
in case of success. Fix this, now!
This bug is present since the beginning of time and it didn't
show up because no one used xd_cmd_alloc/xf_cmd_free.
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_proxy.c')
-rw-r--r-- | sound/soc/fsl/fsl_dsp_proxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp_proxy.c b/sound/soc/fsl/fsl_dsp_proxy.c index e78f1d835d53..e55aea78c4a3 100644 --- a/sound/soc/fsl/fsl_dsp_proxy.c +++ b/sound/soc/fsl/fsl_dsp_proxy.c @@ -614,6 +614,7 @@ int xf_cmd_alloc(struct xf_proxy *proxy, void **buffer, u32 length) /* ...free message and release proxy lock */ xf_msg_free(proxy, m); + xf_unlock(&proxy->lock); return ret; } @@ -640,6 +641,7 @@ int xf_cmd_free(struct xf_proxy *proxy, void *buffer, u32 length) /* ...free message and release proxy lock */ xf_msg_free(proxy, m); + xf_unlock(&proxy->lock); return ret; } |