android_kernel_asus_sm8350/sound/hda
Ye Bin 02dea987ec ALSA: hda: fix potential memleak in 'add_widget_node'
commit 9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-25 17:42:08 +01:00
..
ext ALSA: hda: hdac_ext_stream: fix potential locking issues 2021-11-26 10:47:23 +01:00
array.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
hda_bus_type.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
hdac_bus.c ALSA: hda: Fix potential race in unsol event handler 2020-10-01 13:18:00 +02:00
hdac_component.c Linux 5.1-rc5 2019-04-15 15:51:49 +10:00
hdac_controller.c ALSA: hda: avoid write to STATESTS if controller is in reset 2021-10-27 09:54:29 +02:00
hdac_device.c ALSA: hda/realtek - Add HW8326 support 2022-06-22 14:11:21 +02:00
hdac_i915.c ALSA: hda: Fix 1-minute detection delay when i915 module is not available 2019-07-27 08:31:46 +02:00
hdac_regmap.c ALSA: hda: enable regmap internal locking 2020-10-01 13:17:24 +02:00
hdac_stream.c ALSA: hda: hdac_stream: fix potential locking issue in snd_hdac_stream_assign() 2021-11-26 10:47:23 +01:00
hdac_sysfs.c ALSA: hda: fix potential memleak in 'add_widget_node' 2022-11-25 17:42:08 +01:00
hdmi_chmap.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 17:22:12 +01:00
intel-nhlt.c ALSA: hda: ignore invalid NHLT table 2021-03-30 14:35:20 +02:00
Kconfig Merge branch 'topic/hda-bus-ops-cleanup' into for-next 2019-08-08 22:35:44 +02:00
local.h ALSA: hda: Unexport a few more stuff 2019-08-14 20:00:56 +02:00
Makefile ALSA: hda: move parts of NHLT code to new module 2019-07-31 15:45:59 +02:00
trace.c ALSA: hda - Re-add tracepoints to HD-audio core driver 2015-03-23 13:17:58 +01:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00