Searched hist:"9 a5523f7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/hda/ |
H A D | hdac_sysfs.c | 9a5523f7 Thu Nov 10 08:45:39 CST 2022 Ye Bin <yebin10@huawei.com> ALSA: hda: fix potential memleak in 'add_widget_node'
As 'kobject_add' may allocated memory for 'kobject->name' when return error. And in this function, if call 'kobject_add' failed didn't free kobject. So call 'kobject_put' to recycling resources.
Signed-off-by: Ye Bin <yebin10@huawei.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20221110144539.2989354-1-yebin@huaweicloud.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
|