Date: Sat, 1 Feb 2014 02:02:18 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 1190515 for review Message-ID: <201402010202.s1122IGG054805@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1190515?ac=10 Change 1190515 by jhb@jhb_pippin on 2014/02/01 02:02:13 Compile. Affected files ... .. //depot/projects/pci/sys/dev/pci/pci_pci.c#46 edit Differences ... ==== //depot/projects/pci/sys/dev/pci/pci_pci.c#46 (text+ko) ==== @@ -569,20 +569,20 @@ rid = 0; bus->res = bus_alloc_resource(dev, PCI_RES_BUS, &rid, 0ul, ~0ul, min_count, 0); - if (bus_res == NULL) { + if (bus->res == NULL) { /* * Fall back to just allocating a range of a single bus * number. */ bus->res = bus_alloc_resource(dev, PCI_RES_BUS, &rid, 0ul, ~0ul, 1, 0); - } else if (rman_get_size(bus_res) < min_count) + } else if (rman_get_size(bus->res) < min_count) /* * Attempt to grow the existing range to satisfy the * minimum desired count. */ - (void)bus_adjust_resource(dev, PCI_RES_BUS, bus_res, - rman_get_start(bus_res), rman_get_start(bus_res) + + (void)bus_adjust_resource(dev, PCI_RES_BUS, bus->res, + rman_get_start(bus->res), rman_get_start(bus->res) + min_count - 1); /* XXX */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402010202.s1122IGG054805>