diff options
author | Johan Hovold <johan@kernel.org> | 2019-12-20 10:31:34 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-20 11:31:46 +0100 |
commit | 0141254b0a74b37aa7eb13d42a56adba84d51c73 (patch) | |
tree | 1095e51d158b7daa9faa3bc6080d22feff6ffd03 /Kconfig | |
parent | ALSA: hda/realtek - Add headset Mic no shutup for ALC283 (diff) | |
download | linux-0141254b0a74b37aa7eb13d42a56adba84d51c73.tar.xz linux-0141254b0a74b37aa7eb13d42a56adba84d51c73.zip |
ALSA: usb-audio: fix set_format altsetting sanity check
Make sure to check the return value of usb_altnum_to_altsetting() to
avoid dereferencing a NULL pointer when the requested alternate settings
is missing.
The format altsetting number may come from a quirk table and there does
not seem to be any other validation of it (the corresponding index is
checked however).
Fixes: b099b9693d23 ("ALSA: usb-audio: Avoid superfluous usb_set_interface() calls")
Cc: stable <stable@vger.kernel.org> # 4.18
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191220093134.1248-1-johan@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions