From 9e49bf4e07ed80f9038c5a3e60dfa466a8270220 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Thu, 4 Oct 2018 11:31:28 +0300 Subject: 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 Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_dsp_proxy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/soc/fsl/fsl_dsp_proxy.c') 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; } -- cgit v1.2.3