linux-stable/sound/pci/mixart
Takashi Iwai 19de211a4a ALSA: mixart: Fix mutex deadlock
commit d21b96c8ed upstream.

The code change for switching to non-atomic mode brought the
unexpected mutex deadlock in get_msg().  It converted the spinlock
with the existing mutex, but there were calls with the already holding
the mutex.  Since the only place that needs the extra lock is the code
path from snd_mixart_send_msg(), remove the mutex lock in get_msg()
and apply in the caller side for fixing the mutex deadlock.

Fixes: 8d3a8b5cb5 ("ALSA: mixart: Use nonatomic PCM ops")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201119121440.18945-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-24 13:27:24 +01:00
..
Makefile
mixart.c ALSA: mixart: Mark expected switch fall-through 2018-08-06 09:33:42 +02:00
mixart.h ALSA: mixart: fix string overflow warning 2017-07-18 17:54:17 +02:00
mixart_core.c ALSA: mixart: Fix mutex deadlock 2020-11-24 13:27:24 +01:00
mixart_core.h ALSA: mixart: Use nonatomic PCM ops 2014-09-15 15:52:09 +02:00
mixart_hwdep.c ALSA: mixart: Proper endian notations 2018-07-27 09:06:03 +02:00
mixart_hwdep.h ALSA: mixart: Proper endian notations 2018-07-27 09:06:03 +02:00
mixart_mixer.c ALSA: mixart: constify snd_kcontrol_new structures 2017-05-21 09:08:15 +02:00
mixart_mixer.h