linux_dsm_epyc7002/sound
Pavel Skripkin 29bc89c8b4 ALSA: usb-audio: fix use after free in usb_audio_disconnect
commit c5aa956eaeb05fe87e33433d7fd9f5e4d23c7416 upstream.

The problem was in wrong "if" placement. chip->quirk_type is freed
in snd_card_free_when_closed(), but inside if statement it's accesed.

Fixes: 9799110825db ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/16da19126ff461e5e64a9aec648cce28fb8ed73e.1615242183.git.paskripkin@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:06:27 +01:00
..
ac97
aoa
arm
atmel
core ALSA: pcm: Don't call sync_stop if it hasn't been stopped 2021-03-04 11:37:19 +01:00
drivers
firewire ALSA: fireface: fix to parse sync status register of latter protocol 2021-03-04 11:38:25 +01:00
hda ALSA: hda: intel-nhlt: verify config type 2021-03-09 11:11:14 +01:00
i2c
isa
mips
oss
parisc
pci ALSA: hda: Avoid spurious unsol event handling during S3/S4 2021-03-17 17:06:27 +01:00
pcmcia
ppc
sh
soc ASoC: Intel: sof_sdw: add quirk for HP Spectre x360 convertible 2021-03-11 14:17:29 +01:00
sparc
spi
synth
usb ALSA: usb-audio: fix use after free in usb_audio_disconnect 2021-03-17 17:06:27 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c