WSL2-Linux-Kernel/sound/hda
Ye Bin 7140d7aaf9 ALSA: hda: fix potential memleak in 'add_widget_node'
commit 9a5523f72b 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-16 09:58:25 +01:00
..
ext ALSA: hda: hdac_ext_stream: fix potential locking issues 2021-11-25 09:49:08 +01:00
Kconfig
Makefile
array.c
hda_bus_type.c
hdac_bus.c
hdac_component.c
hdac_controller.c
hdac_device.c ALSA: hda/realtek - Add HW8326 support 2022-06-22 14:21:57 +02:00
hdac_i915.c
hdac_regmap.c
hdac_stream.c ALSA: hda: Make proper use of timecounter 2022-01-27 11:04:07 +01:00
hdac_sysfs.c ALSA: hda: fix potential memleak in 'add_widget_node' 2022-11-16 09:58:25 +01:00
hdmi_chmap.c
intel-dsp-config.c ALSA: intel-dsp-config: add quirk for CML devices based on ES8336 codec 2021-12-08 09:04:49 +01:00
intel-nhlt.c ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array 2022-09-08 12:28:02 +02:00
intel-sdw-acpi.c ALSA: hda: intel-sdw-acpi: go through HDAS ACPI at max depth of 2 2022-01-05 12:42:33 +01:00
local.h
trace.c
trace.h