DragonFlyBSD Kernel Audit
DF-1506 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/sound/pci/emu10kx-pcm.c
+++ b/sys/dev/sound/pci/emu10kx-pcm.c
@@ -1345,6 +1345,7 @@
 	uintptr_t route, r, ivar;
 
 	sc = kmalloc(sizeof(*sc), M_DEVBUF, M_WAITOK | M_ZERO);
+	sc->ihandle = -1;
 	sc->card = (struct emu_sc_info *)(device_get_softc(device_get_parent(dev)));
 	if (sc->card == NULL) {
 		device_printf(dev, "cannot get bridge conf\n");