commit | 77008b70fe0a9ffe354580d9dfda329cdde7f20b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Mar 23 12:41:31 2015 +0300 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Mar 23 14:00:28 2015 +0100 |
tree | abf0888bcd55c82a26218df1596cf674e51e4515 | |
parent | 034f90b393a3d5c99654f048c4b22b3d05e3a345 [diff] |
ALSA: echoaudio: read past end of array We need to cap "ucontrol->id.index / num_busses_in(chip)" so the we don't read beyond the end of the array. I also adding a check on "in" and changing the type in snd_echo_mixer_put() from short to unsigned int. Those changes are done for symmetry and are cosmetic. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>