diff options
author | Johan Hovold <[email protected]> | 2019-12-20 10:31:34 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2019-12-20 11:31:46 +0100 |
commit | 0141254b0a74b37aa7eb13d42a56adba84d51c73 (patch) | |
tree | 1095e51d158b7daa9faa3bc6080d22feff6ffd03 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 66c5d718e5a6f80153b5e8d6ad8ba8e9c3320839 (diff) |
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 <[email protected]> # 4.18
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions