From 716583618838620095de0b5e83d93d6c42509624 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 26 Apr 2016 18:20:41 +0000 Subject: [PATCH] emu10kx: Don't iterate beyond array bounds Reported by: Coverity CID: 1354978 Sponsored by: EMC / Isilon Storage Division --- sys/dev/sound/pci/emu10kx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/emu10kx.c b/sys/dev/sound/pci/emu10kx.c index 3d5bfb36bc52..ca96ba6b33d0 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;