diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-05-17 15:15:42 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-05-17 16:05:10 +0200 |
commit | 64a06f195d3b2d65141b32c80d6b7f0db4df6cb5 (patch) | |
tree | 97bfb181a1a658fd4b1621dd1458d96fd03f3791 /sound/usb/usx2y/usX2Yhwdep.h | |
parent | ALSA: usxy2: Fix potential doubly allocations (diff) | |
download | linux-64a06f195d3b2d65141b32c80d6b7f0db4df6cb5.tar.xz linux-64a06f195d3b2d65141b32c80d6b7f0db4df6cb5.zip |
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>
Diffstat (limited to 'sound/usb/usx2y/usX2Yhwdep.h')
0 files changed, 0 insertions, 0 deletions