linux-stable/sound/pci/mixart
Takashi Iwai e5f40705d1 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:05:52 +01:00
..
Makefile
mixart.c ALSA: mixart: Delete an error message for a failed memory allocation in snd_mixart_create() 2017-08-12 23:33:20 +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:05:52 +01:00
mixart_core.h ALSA: mixart: Use nonatomic PCM ops 2014-09-15 15:52:09 +02:00
mixart_hwdep.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
mixart_hwdep.h ALSA: sound/mixart: avoid redefining {readl,write}_{le,be} accessors 2010-11-11 02:02:20 +01:00
mixart_mixer.c ALSA: mixart: constify snd_kcontrol_new structures 2017-05-21 09:08:15 +02:00
mixart_mixer.h