sound: OSS: keep index within bounds of midi_devs[]
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 16 Nov 2009 16:05:02 +0000 (17:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Nov 2009 16:45:50 +0000 (17:45 +0100)
commit02bb57aeb092cbb0dfdb50c6026dbd0c60af7644
tree1e7bf3b69ac92619e56d9d15a578a5d0fd4d73ad
parent0c3c35e148dbc03106038dd25816fb9f3a084d86
sound: OSS: keep index within bounds of midi_devs[]

When the {orig,midi}_dev equals num_midis, that's one too
large already.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/midi_synth.c
sound/oss/mpu401.c