aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorYe Bin <[email protected]>2022-11-10 14:45:39 +0000
committerTakashi Iwai <[email protected]>2022-11-10 14:28:12 +0000
commit9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143 (patch)
tree95e0f4d07b7317848f25af774767b70a6aed2915 /scripts/mod/file2alias.c
parentALSA: memalloc: Don't fall back for SG-buffer with IOMMU (diff)
downloadkernel-9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143.tar.gz
kernel-9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143.zip
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 <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions