linux/sound/usb/usx2y
Takashi Iwai c1f2484168 ALSA: usxy2: Fix potential doubly allocations
The PCM shmem pages are allocated in snd_usx2y_usbpcm_prepare().
Theoretically the prepare callback may be called simultaneously for
both playback and capture, hence this allocation can be racy.

Make sure that the allocation is performed exclusively by extending
the pcm_mutex lock to cover the allocation code, too.

Link: https://lore.kernel.org/r/20210517131545.27252-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-05-17 16:04:55 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
us122l.c ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
us122l.h ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
usb_stream.c ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
usb_stream.h ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
usbus428ctldefs.h ALSA: usx2y: Fix potential leaks of uninitialized memory 2021-05-17 16:04:10 +02:00
usbusx2y.c ALSA: usx2y: Fix potential memory leaks 2021-05-17 16:04:40 +02:00
usbusx2y.h ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
usbusx2yaudio.c ALSA: usx2y: Coding style fixes 2021-05-17 16:03:58 +02:00
usx2y.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
usX2Yhwdep.c ALSA: usx2y: Avoid self-killing 2021-05-17 16:04:22 +02:00
usX2Yhwdep.h ALSA: usx2y: Fix spaces 2021-05-17 16:03:46 +02:00
usx2yhwdeppcm.c ALSA: usxy2: Fix potential doubly allocations 2021-05-17 16:04:55 +02:00
usx2yhwdeppcm.h ALSA: usx2y: Avoid camelCase 2021-05-17 16:03:34 +02:00