diff options
| author | Takashi Iwai <tiwai@suse.de> | 2022-06-17 17:40:49 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2022-06-20 10:36:02 +0300 |
| commit | 94b98194b62e3fe3f27129d8e4b1f3fd7c5e972b (patch) | |
| tree | 1220408576b9f1e25bf1db000de5800b74adb486 /scripts/const_structs.checkpatch | |
| parent | f1d40433352e5d4babd59c0dd50b5f9414073ddb (diff) | |
| download | linux-94b98194b62e3fe3f27129d8e4b1f3fd7c5e972b.tar.xz | |
ALSA: rawmidi: Take open_mutex around parameter changes
The input/output parameter changes are pretty intrusive, possibly
involving with the buffer resizing operation. Hence those should be
performed exclusively; otherwise some ugly race could happen.
This patch puts the existing open_mutex for snd_rawmidi_input_params()
and *_output_params() for protecting the concurrent calls. Since
those are exported, it's also meant for hardening from the external
calls, too.
Link: https://lore.kernel.org/r/20220617144051.18985-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
