From: Ross Philipson Date: Tue, 31 Mar 2009 20:08:55 +0000 (-0400) Subject: Fixed bug in bus walk code - wrong variable passed to ref function. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8378dad76cc7ee412d472950de5207cd4907cf91;p=xenclient%2Fkernel.git Fixed bug in bus walk code - wrong variable passed to ref function. Changes to be committed: modified: drivers/xen/pciback/pciback_ops.c --- diff --git a/drivers/xen/pciback/pciback_ops.c b/drivers/xen/pciback/pciback_ops.c index feb3b081..e9e952f6 100644 --- a/drivers/xen/pciback/pciback_ops.c +++ b/drivers/xen/pciback/pciback_ops.c @@ -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 +}