[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend, passthrough: Small fix to find_all_the_multi_functions()
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1256559607 0 # Node ID 9c49133434cb920a0593e07e5970d1381086a4db # Parent 19d6d811bc152c954fa85a9a9004a0702cfc5055 xend, passthrough: Small fix to find_all_the_multi_functions() From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/python/xen/util/pci.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r 19d6d811bc15 -r 9c49133434cb tools/python/xen/util/pci.py --- a/tools/python/xen/util/pci.py Mon Oct 26 12:18:50 2009 +0000 +++ b/tools/python/xen/util/pci.py Mon Oct 26 12:20:07 2009 +0000 @@ -830,7 +830,10 @@ class PciDevice: def find_all_the_multi_functions(self): sysfs_mnt = find_sysfs_mnt() - parent = pci_dict_to_bdf_str(self.find_parent()) + parentdict = self.find_parent() + if parentdict is None : + return [ self.name ] + parent = pci_dict_to_bdf_str(parentdict) pci_names = os.popen('ls ' + sysfs_mnt + SYSFS_PCI_DEVS_PATH + '/' + \ parent + '/').read() funcs = extract_the_exact_pci_names(pci_names) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |