Skip to contentSkip to conversation

linux: fix pcifront duplicate connect protection

PATCH In review Jan Beulich 2 participants 2 messages Mar 8, 2006 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: fix pcifront duplicate connect protection

Probably a simple oversight in the initial checkin... Jan

drivers/xen/pcifront/pci.c +3 -1
Index: head-2006-03-06/drivers/xen/pcifront/pci.c
===================================================================
@@ -18,8 +18,10 @@ int pcifront_connect(struct pcifront_dev
 
 	spin_lock(&pcifront_dev_lock);
 
-	if (!pcifront_dev)
+	if (!pcifront_dev) {
 		dev_info(&pdev->xdev->dev, "Installing PCI frontend\n");
+		pcifront_dev = pdev;
+	}
 	else {
 		dev_err(&pdev->xdev->dev, "PCI frontend already installed!\n");
 		err = -EEXIST;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 2 lines · Jan Beulich

Probably a simple oversight in the initial checkin... Jan
_______________________________________________

Yes, this was an oversight on my part. Please check-in this patch.