From 30f289a8a38006a937ca9189bc666b0bd90cab3c Mon Sep 17 00:00:00 2001 From: Renu Tyagi Date: Tue, 23 Sep 2014 09:05:39 +0200 Subject: [PATCH] pcm_share: fixing missing mutex unlock Signed-off-by: renu tyagi Signed-off-by: Takashi Iwai --- src/pcm/pcm_share.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pcm/pcm_share.c b/src/pcm/pcm_share.c index c301c7af799a..4b68f1f00fe3 100644 --- a/src/pcm/pcm_share.c +++ b/src/pcm/pcm_share.c @@ -369,6 +369,7 @@ static void *snd_pcm_share_thread(void *data) err = pipe(slave->poll); if (err < 0) { SYSERR("can't create a pipe"); + Pthread_mutex_unlock(&slave->mutex); return NULL; } while (slave->open_count > 0) { @@ -395,6 +396,7 @@ static void *snd_pcm_share_thread(void *data) err = snd_pcm_sw_params(spcm, &slave->sw_params); if (err < 0) { SYSERR("snd_pcm_sw_params error"); + Pthread_mutex_unlock(&slave->mutex); return NULL; } } -- 2.1.2