linux-stable/sound/hda
Ye Bin bb0ac8d5e5 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-25 17:36:46 +01:00
..
ext ALSA: hda: prevent undefined shift in snd_hdac_ext_bus_get_link() 2020-11-18 18:27:53 +01:00
array.c
hda_bus_type.c
hdac_bus.c ALSA: hda: Fix potential race in unsol event handler 2020-10-01 13:12:44 +02:00
hdac_controller.c ALSA: hda: avoid write to STATESTS if controller is in reset 2021-10-27 09:51:41 +02:00
hdac_device.c ALSA: hda: fix a runtime pm issue in SOF when integrated GPU is disabled 2020-09-23 10:46:27 +02:00
hdac_i915.c
hdac_regmap.c
hdac_stream.c
hdac_sysfs.c ALSA: hda: fix potential memleak in 'add_widget_node' 2022-11-25 17:36:46 +01:00
hdmi_chmap.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 16:35:51 +01:00
Kconfig
local.h
Makefile
trace.c
trace.h