summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <dtwlin@google.com>2017-06-01 20:57:09 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:31 +0200
commit4a3c058e13e95aa2b41484e080d68820a9c20805 (patch)
tree5d73837a909c3fb132f0255698793ef88a1f9769
parentf1d07027250e4dcd2ae57251b06293feefa04ba8 (diff)
qdsp6v2: fix inconsistent mutex_lock
sound/soc/msm/qdsp6v2/q6voice.c:5984 voc_set_device_config() warn: inconsistent returns 'mutex:&v->lock' Change-Id: Ie58dbea8881acdd6a5253828e15d29075092b818 Signed-off-by: David Lin <dtwlin@google.com>
-rw-r--r--sound/soc/msm/qdsp6v2/q6voice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6voice.c b/sound/soc/msm/qdsp6v2/q6voice.c
index eb635243dd5a..a748f3671da7 100644
--- a/sound/soc/msm/qdsp6v2/q6voice.c
+++ b/sound/soc/msm/qdsp6v2/q6voice.c
@@ -5897,6 +5897,7 @@ int voc_set_device_config(uint32_t session_id, uint8_t path_dir,
break;
default:
pr_err("%s: Invalid path_dir %d\n", __func__, path_dir);
+ mutex_unlock(&v->lock);
return -EINVAL;
}