]> git.pld-linux.org Git - packages/xen.git/blob - xend-pci-loop.patch
- fix building documentation with latest perl and texinfo
[packages/xen.git] / xend-pci-loop.patch
1 # Don't crash due to weird PCI cards (Bug 767742)
2
3 diff -r fb8dd4c67778 tools/python/xen/util/pci.py
4 --- a/tools/python/xen/util/pci.py      Tue Dec 13 14:16:20 2011 -0500
5 +++ b/tools/python/xen/util/pci.py      Wed Dec 14 15:46:56 2011 -0500
6 @@ -1268,7 +1268,12 @@ class PciDevice:
7              pass
8  
9      def get_info_from_sysfs(self):
10 -        self.find_capability(0x11)
11 +        try:
12 +            self.find_capability(0x11)
13 +        except PciDeviceParseError, err:
14 +            log.error("Caught '%s'" % err)
15 +            return False
16 +
17          sysfs_mnt = find_sysfs_mnt()
18          if sysfs_mnt == None:
19              return False
This page took 0.0513 seconds and 3 git commands to generate.