[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] Don't WARN_ON -ENOSYS from PHYSDEVOP_manage_pci_remove
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1218189299 -3600 # Node ID 87413eba04ab80ef1d87bff6ff92ebe2f64214d8 # Parent 2866e6af503ea0b33e1c1fb2340ab8ed81925e97 Don't WARN_ON -ENOSYS from PHYSDEVOP_manage_pci_remove We let -ENOSYS slip through on the add side to support old hypervisors, let's do the same on the remove end so we don't get stack dumps during bootup. Signed-off-by: Alex Williamson <alex.williamson@xxxxxx> --- drivers/xen/core/pci.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff -r 2866e6af503e -r 87413eba04ab drivers/xen/core/pci.c --- a/drivers/xen/core/pci.c Thu Jul 31 15:33:54 2008 +0100 +++ b/drivers/xen/core/pci.c Fri Aug 08 10:54:59 2008 +0100 @@ -23,9 +23,13 @@ static int pci_bus_probe_wrapper(struct return r; r = pci_bus_probe(dev); - if (r) - WARN_ON(HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_remove, - &manage_pci)); + if (r) { + int ret; + + ret = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_remove, + &manage_pci); + WARN_ON(ret && ret != -ENOSYS); + } return r; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |