From 8378dad76cc7ee412d472950de5207cd4907cf91 Mon Sep 17 00:00:00 2001 From: Ross Philipson Date: Tue, 31 Mar 2009 16:08:55 -0400 Subject: [PATCH] Fixed bug in bus walk code - wrong variable passed to ref function. Changes to be committed: modified: drivers/xen/pciback/pciback_ops.c --- drivers/xen/pciback/pciback_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} -- 2.39.5