From: Christoph Egger Subject: [PATCH] pciquirk: fix uninitialized variable Date: Mon, 11 Jan 2010 14:37:35 +0100 Message-ID: <201001111437.35673.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_fmySLgKCzYZ56Np" 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 --Boundary-00=_fmySLgKCzYZ56Np Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attach patch fixes uninitialized variable when there's no PERMISSIVE_CONFIG_FILE Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_fmySLgKCzYZ56Np Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_tools_pciquirk.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_pciquirk.diff" diff -r a52925e1c292 tools/python/xen/xend/server/pciquirk.py --- a/tools/python/xen/xend/server/pciquirk.py Mon Jan 11 12:04:32 2010 +0100 +++ b/tools/python/xen/xend/server/pciquirk.py Mon Jan 11 14:37:29 2010 +0100 @@ -117,14 +117,14 @@ class PCIQuirk: pci_perm_dev_config = [''] else: pci_perm_dev_config.insert(0, '') - self.pci_perm_dev_config = pci_perm_dev_config except Exception, ex: raise XendError("Reading config file %s: %s" % (PERMISSIVE_CONFIG_FILE,str(ex))) else: log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE) - self.pci_perm_dev_config = ['xend-pci-perm-devs'] + pci_perm_dev_config = ['xend-pci-perm-devs'] + self.pci_perm_dev_config = pci_perm_dev_config devices = child_at(child(self.pci_perm_dev_config, 'unconstrained_dev_ids'),0) if self.__matchPCIdev( devices ): --Boundary-00=_fmySLgKCzYZ56Np 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 --Boundary-00=_fmySLgKCzYZ56Np--