[PATCH] ALSA: rawmidi - fix the uninitalized user_pversion

Takashi Iwai tiwai at suse.de
Wed Dec 22 20:21:24 CET 2021


On Sat, 18 Dec 2021 13:39:25 +0100,
Jaroslav Kysela wrote:
> 
> The user_pversion was unitialized 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 at kernel.org
> Cc: broonie at kernel.org
> BugLink: https://github.com/alsa-project/alsa-lib/issues/178
> Fixes: 09d23174402d ("ALSA: rawmidi: introduce SNDRV_RAWMIDI_IOCTL_USER_PVERSION")
> Reported-by: syzbot+88412ee8811832b00dbe at syzkaller.appspotmail.com
> Signed-off-by: Jaroslav Kysela <perex at perex.cz>

Thanks, applied now with a minor typo fix.


Takashi


More information about the Alsa-devel mailing list