linux_dsm_epyc7002/sound/usb
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
..
6fire
bcd2000
caiaq
hiface
line6
misc
usx2y
card.c ALSA: usb-audio: fix use after free in usb_audio_disconnect 2021-03-17 17:06:27 +01:00
card.h
clock.c ALSA: usb-audio: Disable sample read check if firmware doesn't give back 2020-12-30 11:54:07 +01:00
clock.h
debug.h
endpoint.c
endpoint.h
format.c
format.h
helper.c
helper.h
Kconfig
Makefile
media.c
media.h
midi.c ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks 2021-01-12 20:18:20 +01:00
midi.h
mixer_maps.c ALSA: usb-audio: use Corsair Virtuoso mapping for Corsair Virtuoso SE 2021-03-09 11:11:10 +01:00
mixer_quirks.c ALSA: usb-audio: add mixer quirks for Pioneer DJM-900NXS2 2021-03-11 14:17:28 +01:00
mixer_quirks.h
mixer_s1810c.c
mixer_s1810c.h
mixer_scarlett_gen2.c
mixer_scarlett_gen2.h
mixer_scarlett.c
mixer_scarlett.h
mixer_us16x08.c
mixer_us16x08.h
mixer.c ALSA: usb-audio: Drop bogus dB range in too low level 2021-03-09 11:11:10 +01:00
mixer.h
pcm.c ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode 2021-03-04 11:37:18 +01:00
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h
quirks.c ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend() 2021-03-17 17:06:27 +01:00
quirks.h
stream.c ALSA: usb-audio: Fix control 'access overflow' errors from chmap 2020-12-21 13:30:07 +01:00
stream.h
usbaudio.h ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend() 2021-03-17 17:06:27 +01:00
validate.c