aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2023-06-12 14:55:33 +0200
committerTakashi Iwai <[email protected]>2023-06-16 09:26:41 +0200
commit297224fc0922e7385573a30c29ffdabb67f27b7d (patch)
treeb0451c5565edef3c74d8e1792d9652f4f81827ad /lib/mpi/mpi-bit.c
parenta2a871483161014f1bcc4e9a04354b01aa77cedb (diff)
ALSA: seq: oss: Fix racy open/close of MIDI devices
Although snd_seq_oss_midi_open() and snd_seq_oss_midi_close() can be called concurrently from different code paths, we have no proper data protection against races. Introduce open_mutex to each seq_oss_midi object for avoiding the races. Reported-by: "Gong, Sishuai" <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions