Date: Thu, 13 Apr 2006 05:22:00 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95143 for review Message-ID: <200604130522.k3D5M0PF086300@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95143 Change 95143 by jmg@jmg_arlene on 2006/04/13 05:21:39 make sure pciintr is an array index.. Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#39 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#39 (text+ko) ==== @@ -440,6 +440,7 @@ KASSERT(pciintr >= 1 && pciintr <= 4, ("interrupt out of range")); rid = pciintr; + pciintr--; if (sc->hs_intr[pciintr] == NULL) { if ((sc->hs_intr[pciintr] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE)) == NULL) { @@ -477,6 +478,7 @@ sc = device_get_softc(dev); pciintr = rman_get_start(vec); + pciintr--; error = bus_teardown_intr(dev, sc->hs_intr[pciintr], cookie); if (error)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604130522.k3D5M0PF086300>