aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/midi/sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c
index 1ef784599e4e..abfb662fc931 100644
--- a/sys/dev/sound/midi/sequencer.c
+++ b/sys/dev/sound/midi/sequencer.c
@@ -737,7 +737,7 @@ static int
seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md)
{
- if (unit > scp->midi_number || unit < 0)
+ if (unit >= scp->midi_number || unit < 0)
return EINVAL;
*md = scp->midis[unit];