diff options
Diffstat (limited to 'sound/oss/midi_synth.c')
-rw-r--r-- | sound/oss/midi_synth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/midi_synth.c b/sound/oss/midi_synth.c index 9e450988ed36..3bc7104c5379 100644 --- a/sound/oss/midi_synth.c +++ b/sound/oss/midi_synth.c | |||
@@ -426,7 +426,7 @@ midi_synth_open(int dev, int mode) | |||
426 | int err; | 426 | int err; |
427 | struct midi_input_info *inc; | 427 | struct midi_input_info *inc; |
428 | 428 | ||
429 | if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL) | 429 | if (orig_dev < 0 || orig_dev >= num_midis || midi_devs[orig_dev] == NULL) |
430 | return -ENXIO; | 430 | return -ENXIO; |
431 | 431 | ||
432 | midi2synth[orig_dev] = dev; | 432 | midi2synth[orig_dev] = dev; |