+10
−2
Loading
mainline inclusion from mainline-v5.1-rc1 commit 3a554371 category: bugfix bugzilla: 34614 CVE: NA ----------------------------------------------- This patch changes the parent pointer assignment of snd_info_entry object to be always non-NULL. More specifically,check the parent argument in snd_info_create_module_entry() & co, and assign snd_proc_root if NULL is passed there. This assures that the proc object is always freed when the root is freed, so avoid possible memory leaks. For example, some error paths (e.g. snd_info_register() error at snd_minor_info_init()) may leave snd_info_entry object although the proc file itself is freed. Signed-off-by:Takashi Iwai <tiwai@suse.de> Signed-off-by:
Ye Bin <yebin10@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>