Skip to content
Commit c5aa956e authored by Pavel Skripkin's avatar Pavel Skripkin Committed by Takashi Iwai
Browse files

ALSA: usb-audio: fix use after free in usb_audio_disconnect



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: 97991108 ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()")
Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/16da19126ff461e5e64a9aec648cce28fb8ed73e.1615242183.git.paskripkin@gmail.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 30dea071
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment