]> xenbits.xensource.com Git - people/aperard/linux.git/commit
ALSA: usb-audio: Stop parsing channels bits when all channels are found.
authorJohan Carlsson <johan.carlsson@teenage.engineering>
Wed, 13 Mar 2024 08:15:09 +0000 (09:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Mar 2024 13:29:22 +0000 (14:29 +0100)
commita39d51ff1f52cd0b6fe7d379ac93bd8b4237d1b7
tree0102e7cdb2728afaf5c69a2bd2c3c92ad7e8a0ea
parent526d028341f73c0f2dbd5e4855a59ebb6d620be5
ALSA: usb-audio: Stop parsing channels bits when all channels are found.

If a usb audio device sets more bits than the amount of channels
it could write outside of the map array.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>
Fixes: 04324ccc75f9 ("ALSA: usb-audio: add channel map support")
Message-ID: <20240313081509.9801-1-johan.carlsson@teenage.engineering>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c