]> xenbits.xen.org Git - xenclient/kernel.git/commitdiff
Fixed bug in bus walk code - wrong variable passed to ref function.
authorRoss Philipson <ross.philipson@citrix.com>
Tue, 31 Mar 2009 20:08:55 +0000 (16:08 -0400)
committerRoss Philipson <ross.philipson@citrix.com>
Tue, 31 Mar 2009 20:08:55 +0000 (16:08 -0400)
 Changes to be committed:
modified:   drivers/xen/pciback/pciback_ops.c

drivers/xen/pciback/pciback_ops.c

index feb3b081a9d0538b534bcf28e580aadb6295eb87..e9e952f6bafbe09d83c7937c28e4595e991beb52 100644 (file)
@@ -82,7 +82,7 @@ static void pciback_walk_bus_cb(struct pci_dev *dev, void *userdata)
                 PCI_SLOT(dev->devfn) != PCI_SLOT(list->dev->devfn)))
                return;
 
-       dev_tmp = pcistub_ref_pci_dev(dev_tmp);
+       dev_tmp = pcistub_ref_pci_dev(dev);
        if (dev_tmp == NULL) {
                /* not controlled by pciback, fail */
                list->err = ENXIO;
@@ -750,4 +750,4 @@ parse_error:
        printk(KERN_ERR "pciback: Error parsing device parameters \"%s\" at \"%s\"\n",
               device_args, device_args + pos);
        return -EINVAL;
-}
\ No newline at end of file
+}