PERFORCE change 1190515 for review
    John Baldwin 
    jhb at FreeBSD.org
       
    Mon Feb  3 00:16:47 UTC 2014
    
    
  
http://p4web.freebsd.org/@@1190515?ac=10
Change 1190515 by jhb at 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 */
    
    
More information about the p4-projects
mailing list