aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/v_midi.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-03-23 12:41:31 +0300
committerTakashi Iwai <tiwai@suse.de>2015-03-23 14:00:28 +0100
commit77008b70fe0a9ffe354580d9dfda329cdde7f20b (patch)
treeabf0888bcd55c82a26218df1596cf674e51e4515 /sound/oss/v_midi.c
parentALSA: ak411x: simplify snd_ak4113_create() a bit (diff)
downloadlinux-dev-77008b70fe0a9ffe354580d9dfda329cdde7f20b.tar.xz
linux-dev-77008b70fe0a9ffe354580d9dfda329cdde7f20b.zip
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>
Diffstat (limited to 'sound/oss/v_midi.c')
0 files changed, 0 insertions, 0 deletions