diff options
author | cem <cem@FreeBSD.org> | 2016-04-26 18:20:41 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-04-26 18:20:41 +0000 |
commit | 37b282449f5a9f0ee463dea343b572effd048869 (patch) | |
tree | ecc815253e896a0597caa5a0c2cad6a8ca797c28 /sys/dev/sound | |
parent | bfa6d165c2d70299f38c94bf76513787d34dc5f7 (diff) | |
download | FreeBSD-src-37b282449f5a9f0ee463dea343b572effd048869.zip FreeBSD-src-37b282449f5a9f0ee463dea343b572effd048869.tar.gz |
emu10kx: Don't iterate beyond array bounds
Reported by: Coverity
CID: 1354978
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pci/emu10kx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/emu10kx.c b/sys/dev/sound/pci/emu10kx.c index 3d5bfb3..ca96ba6 100644 --- a/sys/dev/sound/pci/emu10kx.c +++ b/sys/dev/sound/pci/emu10kx.c @@ -587,7 +587,7 @@ emu_getcard(device_t dev) } } - for (i = 0; i < nitems(emu_cards); i++) { + for (i = 0; i < nitems(emu_bad_cards); i++) { if (device == emu_bad_cards[i].device) { if (subdevice == emu_bad_cards[i].subdevice) { thiscard = 0; |