linux: fix pcifront duplicate connect protection
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
@@ -18,8 +18,10 @@ int pcifront_connect(struct pcifront_devspin_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
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.