From: "Jan Beulich" Subject: [PATCH] linux: fix pcifront duplicate connect protection Date: Wed, 08 Mar 2006 12:05:46 +0100 Message-ID: <440EC89A.76F0.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part0227459A.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part0227459A.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Probably a simple oversight in the initial checkin... Jan --=__Part0227459A.0__= Content-Type: text/plain; name="xenlinux-pcifront-connect.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="xenlinux-pcifront-connect.patch" Index: head-2006-03-06/drivers/xen/pcifront/pci.c =================================================================== --- head-2006-03-06.orig/drivers/xen/pcifront/pci.c 2006-03-06 11:15:49.000000000 +0100 +++ head-2006-03-06/drivers/xen/pcifront/pci.c 2006-03-07 11:37:42.000000000 +0100 @@ -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; --=__Part0227459A.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part0227459A.0__=--