linux/sound/pci/mixart
Takashi Iwai d21b96c8ed ALSA: mixart: Fix mutex deadlock
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>
2020-11-19 18:26:30 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mixart_core.c ALSA: mixart: Fix mutex deadlock 2020-11-19 18:26:30 +01:00
mixart_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
mixart_hwdep.c ALSA: mixart: More constifications 2020-01-05 16:14:48 +01:00
mixart_hwdep.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
mixart_mixer.c ALSA: mixart: More constifications 2020-01-05 16:14:48 +01:00
mixart_mixer.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
mixart.c ALSA: Use fallthrough pseudo-keyword 2020-07-09 13:01:29 +02:00
mixart.h ALSA: mixart: Correct comment wrt obsoleted tasklet usage 2020-09-09 18:34:36 +02:00