Skip to contentSkip to conversation

pciquirk: fix uninitialized variable

PATCH New Christoph Egger 1 participant 1 message Jan 11, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pciquirk: fix uninitialized variable

Hi!

Attach patch fixes uninitialized variable when there's no PERMISSIVE_CONFIG_FILE

Signature · 6 lines
---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
tools/python/xen/xend/server/pciquirk.py +2 -2
diff -r a52925e1c292 tools/python/xen/xend/server/pciquirk.py
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel