]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: rawmidi - fix the uninitalized user_pversion
authorJaroslav Kysela <perex@perex.cz>
Sat, 18 Dec 2021 12:39:25 +0000 (13:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Dec 2021 19:18:27 +0000 (20:18 +0100)
commitff83ef13c65277d0522133d119f8d22cda9e382a
tree4e802f8d7e861cb9455db41446d737c923351168
parenta273ff0d015642416c7d125b4fe4e21f8faf07f0
ALSA: rawmidi - fix the uninitalized user_pversion

The user_pversion was uninitialized for the user space file structure
in the open function, because the file private structure use
kmalloc for the allocation.

The kernel ALSA sequencer code clears the file structure, so no additional
fixes are required.

Cc: stable@kernel.org
Cc: broonie@kernel.org
BugLink: https://github.com/alsa-project/alsa-lib/issues/178
Fixes: f9ad786cf3e9 ("ALSA: rawmidi: introduce SNDRV_RAWMIDI_IOCTL_USER_PVERSION")
Reported-by: syzbot+88412ee8811832b00dbe@syzkaller.appspotmail.com
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20211218123925.2583847-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi.c