From: Ian Jackson Date: Fri, 25 Feb 2011 17:13:53 +0000 (+0000) Subject: libxl: do not ignore errors from libxl_device_pci_add_xenstore in do_pci_add X-Git-Tag: 4.1.0-rc6~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=67743d23a8c4585e41b73e9d93fd237d2fbe1236;p=xen.git libxl: do not ignore errors from libxl_device_pci_add_xenstore in do_pci_add Without this, some failures of PCI device passthrough would be ignored. Signed-off-by: Ian Jackson Acked-by: Stefano Stabellini Acked-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index ba59650fde..d6457b97b4 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -718,8 +718,8 @@ out: } } - libxl_device_pci_add_xenstore(gc, domid, pcidev); - return 0; + rc = libxl_device_pci_add_xenstore(gc, domid, pcidev, starting); + return rc; } static int libxl_device_pci_reset(libxl__gc *gc, unsigned int domain, unsigned int bus,