WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend, pciquirk: fix uninitialized variabl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend, pciquirk: fix uninitialized variable
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jan 2010 23:25:21 -0800
Delivery-date: Mon, 11 Jan 2010 23:25:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263279416 0
# Node ID 5e1971bec8819c4ea55af24dfe8b30762e00965d
# Parent  91d1d06d658e959ad8a2ab5ed405f85832ffab60
xend, pciquirk: fix uninitialized variable

Fixes uninitialized variable when there's no
PERMISSIVE_CONFIG_FILE

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/python/xen/xend/server/pciquirk.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 91d1d06d658e -r 5e1971bec881 tools/python/xen/xend/server/pciquirk.py
--- a/tools/python/xen/xend/server/pciquirk.py  Tue Jan 12 06:55:24 2010 +0000
+++ b/tools/python/xen/xend/server/pciquirk.py  Tue Jan 12 06:56:56 2010 +0000
@@ -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 ):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend, pciquirk: fix uninitialized variable, Xen patchbot-unstable <=