linux/sound/usb/usx2y
Takashi Iwai 64a06f195d ALSA: usx2y: Fix shmem initialization
Currently us428ctls_shmem pages are allocated dynamically upon the
mmap call, but this is quite racy.  Since the shared memory itself is
mandatory for the mmap, let's allocate it at the beginning of the card
initialization.  Also, fix the initialization of the wait queue, too.

Link: https://lore.kernel.org/r/20210517131545.27252-9-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-05-17 16:05:10 +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 shmem initialization 2021-05-17 16:05:10 +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
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
usX2Yhwdep.c ALSA: usx2y: Fix shmem initialization 2021-05-17 16:05:10 +02:00
usX2Yhwdep.h ALSA: usx2y: Fix spaces 2021-05-17 16:03:46 +02:00