linux_dsm_epyc7002/sound/isa
Takashi Iwai 0e54f8ee6b ALSA: sb: Fix potential double-free of CSP mixer elements
[ Upstream commit c305366a37441c2ac90b08711cb6f032b43672f2 ]

snd_sb_qsound_destroy() contains the calls of removing the previously
created mixer controls, but it doesn't clear the pointers.  As
snd_sb_qsound_destroy() itself may be repeatedly called via ioctl,
this could lead to double-free potentially.

Fix it by clearing the struct fields properly afterwards.

Link: https://lore.kernel.org/r/20210608140540.17885-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:42 +02:00
..
ad1816a
ad1848
cs423x
es1688
galaxy
gus Revert "ALSA: gus: add a check of the status of snd_ctl_add" 2021-06-03 09:00:41 +02:00
msnd
opti9xx
sb ALSA: sb: Fix potential double-free of CSP mixer elements 2021-07-20 16:05:42 +02:00
wavefront
wss
adlib.c
als100.c
azt2320.c
cmi8328.c
cmi8330.c
es18xx.c
Kconfig
Makefile
opl3sa2.c
sc6000.c
sscape.c