diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-03-15 07:14:22 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-03-15 07:45:20 +0100 |
commit | 57220bc1f5924c869d8fc049e50169915ca0cb24 (patch) | |
tree | 8807533cccbd92a61fbb49640c47ef7e7f368363 /sound/oss/v_midi.c | |
parent | ALSA: hda/ca0132 - Remove extra setting of dsp_state. (diff) | |
download | linux-57220bc1f5924c869d8fc049e50169915ca0cb24.tar.xz linux-57220bc1f5924c869d8fc049e50169915ca0cb24.zip |
sound: sequencer: cap array index in seq_chn_common_event()
"chn" here is a number between 0 and 255, but ->chn_info[] only has
16 elements so there is a potential write beyond the end of the
array.
If the seq_mode isn't SEQ_2 then we let the individual drivers
(either opl3.c or midi_synth.c) handle it. Those functions all
do a bounds check on "chn" so I haven't changed anything here.
The opl3.c driver has up to 18 channels and not 16.
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