aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/xen/xen-pciback/xenbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c
index 978d2c6f5dca..18db31f13a4c 100644
--- a/drivers/xen/xen-pciback/xenbus.c
+++ b/drivers/xen/xen-pciback/xenbus.c
@@ -249,6 +249,7 @@ static int xen_pcibk_export_device(struct xen_pcibk_device *pdev,
249 goto out; 249 goto out;
250 250
251 dev_dbg(&dev->dev, "registering for %d\n", pdev->xdev->otherend_id); 251 dev_dbg(&dev->dev, "registering for %d\n", pdev->xdev->otherend_id);
252 dev->dev_flags |= PCI_DEV_FLAGS_ASSIGNED;
252 if (xen_register_device_domain_owner(dev, 253 if (xen_register_device_domain_owner(dev,
253 pdev->xdev->otherend_id) != 0) { 254 pdev->xdev->otherend_id) != 0) {
254 dev_err(&dev->dev, "device has been assigned to another " \ 255 dev_err(&dev->dev, "device has been assigned to another " \
@@ -288,6 +289,7 @@ static int xen_pcibk_remove_device(struct xen_pcibk_device *pdev,
288 } 289 }
289 290
290 dev_dbg(&dev->dev, "unregistering for %d\n", pdev->xdev->otherend_id); 291 dev_dbg(&dev->dev, "unregistering for %d\n", pdev->xdev->otherend_id);
292 dev->dev_flags &= ~PCI_DEV_FLAGS_ASSIGNED;
291 xen_unregister_device_domain_owner(dev); 293 xen_unregister_device_domain_owner(dev);
292 294
293 xen_pcibk_release_pci_dev(pdev, dev); 295 xen_pcibk_release_pci_dev(pdev, dev);