debuggers.hg

changeset 20827:5e1971bec881

xend, pciquirk: fix uninitialized variable

Fixes uninitialized variable when there's no
PERMISSIVE_CONFIG_FILE

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 12 06:56:56 2010 +0000 (2010-01-12)
parents 91d1d06d658e
children 5b45d08b7abf
files tools/python/xen/xend/server/pciquirk.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciquirk.py	Tue Jan 12 06:55:24 2010 +0000
     1.2 +++ b/tools/python/xen/xend/server/pciquirk.py	Tue Jan 12 06:56:56 2010 +0000
     1.3 @@ -117,14 +117,14 @@ class PCIQuirk:
     1.4                      pci_perm_dev_config = ['']
     1.5                  else:
     1.6                      pci_perm_dev_config.insert(0, '')
     1.7 -                self.pci_perm_dev_config = pci_perm_dev_config
     1.8              except Exception, ex:
     1.9                  raise XendError("Reading config file %s: %s" %
    1.10                                  (PERMISSIVE_CONFIG_FILE,str(ex)))
    1.11          else:
    1.12              log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
    1.13 -            self.pci_perm_dev_config = ['xend-pci-perm-devs']
    1.14 +            pci_perm_dev_config = ['xend-pci-perm-devs']
    1.15  
    1.16 +        self.pci_perm_dev_config = pci_perm_dev_config
    1.17          devices = child_at(child(self.pci_perm_dev_config,
    1.18                                   'unconstrained_dev_ids'),0)
    1.19          if self.__matchPCIdev( devices ):