packages: xen/xend-pci-loop.patch (NEW)=?UTF-8?Q?=20?=- avoid crashes with weird PCI cards

baggins baggins at pld-linux.org
Wed Feb 29 22:04:30 CET 2012


Author: baggins                      Date: Wed Feb 29 21:04:30 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- avoid crashes with weird PCI cards

---- Files affected:
packages/xen:
   xend-pci-loop.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xen/xend-pci-loop.patch
diff -u /dev/null packages/xen/xend-pci-loop.patch:1.1
--- /dev/null	Wed Feb 29 22:04:30 2012
+++ packages/xen/xend-pci-loop.patch	Wed Feb 29 22:04:24 2012
@@ -0,0 +1,19 @@
+# Don't crash due to weird PCI cards (Bug 767742)
+
+diff -r fb8dd4c67778 tools/python/xen/util/pci.py
+--- a/tools/python/xen/util/pci.py	Tue Dec 13 14:16:20 2011 -0500
++++ b/tools/python/xen/util/pci.py	Wed Dec 14 15:46:56 2011 -0500
+@@ -1268,7 +1268,12 @@ class PciDevice:
+             pass
+ 
+     def get_info_from_sysfs(self):
+-        self.find_capability(0x11)
++        try:
++            self.find_capability(0x11)
++        except PciDeviceParseError, err:
++            log.error("Caught '%s'" % err)
++            return False
++
+         sysfs_mnt = find_sysfs_mnt()
+         if sysfs_mnt == None:
+             return False
================================================================


More information about the pld-cvs-commit mailing list