[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] ioemu: fix pt_chk_bar_overload
Oops wrong patch, sorry about that .... ioemu: fix the devices loop. Signed-off-by: Jean Guyader <jean.guyader@xxxxxxxxxxxxx> -- Jean Guyader diff -r 63317b6c3eab tools/ioemu/hw/pci.c --- a/tools/ioemu/hw/pci.c Mon Jul 14 15:21:03 2008 +0100 +++ b/tools/ioemu/hw/pci.c Wed Jul 16 16:59:57 2008 +0100 @@ -644,15 +644,15 @@ PCIBus *pci_bridge_init(PCIBus *bus, int int pt_chk_bar_overlap(PCIBus *bus, int devfn, uint32_t addr, uint32_t size) { - PCIDevice *devices = (PCIDevice *)bus->devices; + PCIDevice *devices; PCIIORegion *r; int ret = 0; int i, j; /* check Overlapped to Base Address */ - for (i=0; i<256; i++, devices++) + for (i=bus->devfn_min; i<256; i += 8) { - if ((devices == NULL) || (devices->devfn == devfn)) + if ( !(devices = bus->devices[devfn]) ) continue; for (j=0; j<PCI_NUM_REGIONS; j++) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |