]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xen/patches/35-xend-pci-loop.patch
5c4118a10ad541e85fe8ebc42a9032f83262ddde
[people/amarx/ipfire-3.x.git] / xen / patches / 35-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