]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ALSA: seq: Fix regression by incorrect ioctl_mutex usages
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Feb 2018 16:16:01 +0000 (17:16 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 4 Apr 2018 09:53:23 +0000 (11:53 +0200)
commitb09be94d620a2d1e206d3266c1df995923d89339
tree481cbec2271ab623aedb6f1a77663a0f5920a431
parent06c7e32e16851f0d6a45610cbc3d50810c01b644
ALSA: seq: Fix regression by incorrect ioctl_mutex usages

BugLink: http://bugs.launchpad.net/bugs/1756860
This is the revised backport of the upstream commit
b3defb791b26ea0683a93a4f49c77ec45ec96f10

We had another backport (e.g. 623e5c8ae32b in 4.4.115), but it applies
the new mutex also to the code paths that are invoked via faked
kernel-to-kernel ioctls.  As reported recently, this leads to a
deadlock at suspend (or other scenarios triggering the kernel
sequencer client).

This patch addresses the issue by taking the mutex only in the code
paths invoked by user-space, just like the original fix patch does.

Reported-and-tested-by: Andres Bertens <abertensu@yahoo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/core/seq/seq_clientmgr.c