]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/hdmi: Fix incorrect mutex unlock in silent_stream_disable()
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 Jan 2021 08:38:52 +0000 (09:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 Jan 2021 20:08:53 +0000 (21:08 +0100)
commite977860bf9701ab6184eb57afa73b0769f8df57a
tree53fc4840937b7a30ed1aafb471473f224f6c5691
parentd2f3d123e7a1925ad9c630b1ce56783f020a593d
ALSA: hda/hdmi: Fix incorrect mutex unlock in silent_stream_disable()

The silent_stream_disable() function introduced by the commit
7a2374461afb ("ALSA: hda/hdmi: fix silent stream for first playback to
DP") takes the per_pin->lock mutex, but it unlocks the wrong one,
spec->pcm_lock, which causes a deadlock.  This patch corrects it.

Fixes: 7a2374461afb ("ALSA: hda/hdmi: fix silent stream for first playback to DP")
Reported-by: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Cc: <stable@vger.kernel.org>
Acked-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210101083852.12094-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c