emu10kx: Don't iterate beyond array bounds

Reported by:	Coverity
CID:		1354978
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2016-04-26 18:20:41 +00:00
parent 5579267b08
commit 7165836188

View File

@ -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;