diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2018-10-25 14:36:56 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2018-10-25 14:36:56 +0000 |
| commit | 501f94a5184e17adf7b7d610053bc3b121b0a36e (patch) | |
| tree | 987ae9124ab812f1c7751cc9b13903fcd8d89adc /sys/dev | |
| parent | b913384f54ecba42559340b5c3a0fe82a7185483 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sound/midi/sequencer.c | 2 |
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]; |
