Commit e1143dd9 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

pcm: multi: Drop the fixed slave_map[] in snd_pcm_multi_open()



slave_map[] in snd_pcm_multi_open() is a fixed size array and
obviously we have no overflow check, and eventually the program gets
an error when more than 64 channels are used.

Although we can modify the code to allocate the array dynamically, it
turned out that we can drop the whole slave_map[] thingy in this
function when looking at the code closely.  In the past, it was used
to identify the one-to-many mapping.  But the check was dropped, and
now it's nothing more than a sanity check.

Reported-by: default avatarJörg Müller <joerg.mueller7744@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4dfa8f08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment