diff --git a/[refs] b/[refs] index 8704e6db9670..fab5dcafb5a3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0c3c35e148dbc03106038dd25816fb9f3a084d86 +refs/heads/master: 02bb57aeb092cbb0dfdb50c6026dbd0c60af7644 diff --git a/trunk/sound/oss/midi_synth.c b/trunk/sound/oss/midi_synth.c index 9e450988ed36..3bc7104c5379 100644 --- a/trunk/sound/oss/midi_synth.c +++ b/trunk/sound/oss/midi_synth.c @@ -426,7 +426,7 @@ midi_synth_open(int dev, int mode) int err; struct midi_input_info *inc; - if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL) + if (orig_dev < 0 || orig_dev >= num_midis || midi_devs[orig_dev] == NULL) return -ENXIO; midi2synth[orig_dev] = dev; diff --git a/trunk/sound/oss/mpu401.c b/trunk/sound/oss/mpu401.c index 734b8f9e2f78..0af9d24feb8f 100644 --- a/trunk/sound/oss/mpu401.c +++ b/trunk/sound/oss/mpu401.c @@ -770,7 +770,7 @@ static int mpu_synth_ioctl(int dev, unsigned int cmd, void __user *arg) midi_dev = synth_devs[dev]->midi_dev; - if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL) + if (midi_dev < 0 || midi_dev >= num_midis || midi_devs[midi_dev] == NULL) return -ENXIO; devc = &dev_conf[midi_dev];