]> git.pld-linux.org Git - packages/xen.git/commitdiff
- avoid crashes with weird PCI cards
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Feb 2012 21:04:24 +0000 (21:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xend-pci-loop.patch -> 1.1

xend-pci-loop.patch [new file with mode: 0644]

diff --git a/xend-pci-loop.patch b/xend-pci-loop.patch
new file mode 100644 (file)
index 0000000..5c4118a
--- /dev/null
@@ -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
This page took 0.461077 seconds and 4 git commands to generate.