From 8b3b39c7d832f8fdf11798fc04061ba353393f70 Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Thu, 2 Jul 2015 10:45:09 +0530 Subject: [PATCH] padsp: Avoid possible deadlock. Unlocked i->mainloop before returning from default case. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=91184 Signed-off-by: Deepak Srivastava Signed-off-by: Peter Meerwald --- src/utils/padsp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/padsp.c b/src/utils/padsp.c index b696b3993..5e336bb1d 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -1201,6 +1201,9 @@ static int dsp_open(int flags, int *_errno) { i->io_flags = PA_IO_EVENT_INPUT | PA_IO_EVENT_OUTPUT; break; default: + pa_threaded_mainloop_unlock(i->mainloop); + fd_info_unref(i); + *_errno = EIO; return -1; }