Skip to content
Snippets Groups Projects
Commit 9a5523f7 authored by Ye Bin's avatar Ye Bin Committed by Takashi Iwai
Browse files

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: default avatarYe Bin <yebin10@huawei.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221110144539.2989354-1-yebin@huaweicloud.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9736a325
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment