summaryrefslogtreecommitdiff
path: root/arch/h8300/configs
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-08-20 22:43:42 +0300
committerTakashi Iwai <tiwai@suse.de>2019-08-22 11:33:12 +0300
commitf9f0e9ed350e15d51ad07364b4cf910de50c472a (patch)
tree3b983a9c13686a2b8463a4ae996c14b125db498d /arch/h8300/configs
parent1bc8d18c75fef3b478dbdfef722aae09e2a9fde7 (diff)
downloadlinux-f9f0e9ed350e15d51ad07364b4cf910de50c472a.tar.xz
ALSA: usb-audio: Check mixer unit bitmap yet more strictly
The bmControls (for UAC1) or bmMixerControls (for UAC2/3) bitmap has a variable size depending on both input and output pins. Its size is to fit with input * output bits. The problem is that the input size can't be determined simply from the unit descriptor itself but it needs to parse the whole connected sources. Although the uac_mixer_unit_get_channels() tries to check some possible overflow of this bitmap, it's incomplete due to the lack of the evaluation of input pins. For covering possible overflows, this patch adds the bitmap overflow check in the loop of input pins in parse_audio_mixer_unit(). Fixes: 0bfe5e434e66 ("ALSA: usb-audio: Check mixer unit descriptors more strictly") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'arch/h8300/configs')
0 files changed, 0 insertions, 0 deletions