Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0ee9a02 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: handle mutex correctly to avoid possible deadlock



Unlock mutex in stream->device to avoid a possible deadlock
when returned from function snd_compr_drain() in error case
without unlocking the mutex.

Change-Id: I24a5af4e2eaa5fd636a6c1b1afb461bfd461617f
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent e3950ebc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -781,7 +781,7 @@ static int snd_compr_drain(struct snd_compr_stream *stream)
	if (!retval) {
		stream->runtime->state = SNDRV_PCM_STATE_DRAINING;
		wake_up(&stream->runtime->sleep);
		return retval;
		goto ret;
	}

ret: