kernel_samsung_a53x/sound
Christophe JAILLET 0ffb99e62d ALSA: mixer_oss: Remove some incorrect kfree_const() usages
[ Upstream commit 368e4663c557de4a33f321b44e7eeec0a21b2e4e ]

"assigned" and "assigned->name" are allocated in snd_mixer_oss_proc_write()
using kmalloc() and kstrdup(), so there is no point in using kfree_const()
to free these resources.

Switch to the more standard kfree() to free these resources.

This could avoid a memory leak.

Fixes: 454f5ec1d2b7 ("ALSA: mixer: oss: Constify snd_mixer_oss_assign_table definition")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/63ac20f64234b7c9ea87a7fa9baf41e8255852f7.1727374631.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:36 +01:00
..
ac97 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aoa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core ALSA: mixer_oss: Remove some incorrect kfree_const() usages 2024-11-23 23:21:36 +01:00
drivers Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
firewire Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hda ALSA: hda: Add input value sanity checks to HDMI channel map controls 2024-11-23 23:21:03 +01:00
i2c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mips Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oss/dmasound Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
parisc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci ALSA: hda/realtek - FIxed ALC285 headphone no sound 2024-11-23 23:21:14 +01:00
pcmcia Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs 2024-11-19 09:22:42 +01:00
soc ASoC: rt5682: Return devm_of_clk_add_hw_provider to transfer the error 2024-11-23 23:21:30 +01:00
sparc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
synth ALSA: emux: improve patch ioctl data validation 2024-11-19 14:19:32 +01:00
usb ALSA: usb-audio: Support Yamaha P-125 quirk entry 2024-11-23 23:20:42 +01:00
x86 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ac97_bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
last.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sound_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00