]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:58 +0000 (18:19 -0400)
commit22cad1b841a63635a38273b799b4791f202ade72
tree5cac5bde691e909f212adf7d9f5fcad59fc33557
parentde4bfe60b030c9f30f0caefa07e6c6c0d7f9fd9b
ALSA: usb-audio: Stop parsing channels bits when all channels are found.

[ Upstream commit a39d51ff1f52cd0b6fe7d379ac93bd8b4237d1b7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/usb/stream.c