Skip to contentSkip to conversation

pciquirk.py can refer to undeclared variable

PATCH New David Edmondson 1 participant 1 message Feb 10, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pciquirk.py can refer to undeclared variable

# HG changeset patch
# User dme@aw
# Date 1234261891 0
# Node ID 1efbb12b68601ff4ed928fbb2b27123643136747
# Parent 72cac93428513c23f3a433d2a16dab010881bb07 PCIQuirk`__devIsUnconstrained refers to an undeclared variable if /etc/xen/xend-pci-permissive.sxp doesn't exist.

tools/python/xen/xend/server/pciquirk.py +2 -1
diff -r 72cac9342851 -r 1efbb12b6860 tools/python/xen/xend/server/pciquirk.py
@@ -123,7 +123,8 @@
             log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
             self.pci_perm_dev_config = ['xend-pci-perm-devs']
 
-        devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0)
+        devices = child_at(child(self.pci_perm_dev_config,
+                                 'unconstrained_dev_ids'),0)
         if self.__matchPCIdev( devices ):
             log.debug("Permissive mode enabled for PCI device [%s]" %
                       self.devid)