From: Ian Jackson Date: Thu, 7 Jul 2011 11:35:05 +0000 (+0100) Subject: libxl: fix incorrect return of ERROR_INVAL from disk_try_backend X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10071 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a49c86dd62ed55702b0de2559468f3820b59ca09;p=xen.git libxl: fix incorrect return of ERROR_INVAL from disk_try_backend disk_try_backend is supposed to return 0 or the disk backend format. Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 0a00b24671..0680211ec1 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -145,7 +145,7 @@ static int disk_try_backend(disk_try_backend_args *a, LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend phy" " unsuitable as phys path not a block device", a->disk->vdev); - return ERROR_INVAL; + return 0; } return backend;