emu10kx: Don't iterate beyond array bounds
Reported by: Coverity CID: 1354978 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
5579267b08
commit
7165836188
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user