[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH]: xl, fix segfault when detaching non-existant disk
Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> diff -r ac7e4c6ec6c7 tools/libxl/libxl_utils.c --- a/tools/libxl/libxl_utils.c Fri Jul 23 19:23:49 2010 +0100 +++ b/tools/libxl/libxl_utils.c Mon Jul 26 18:23:42 2010 +0100 @@ -451,6 +451,8 @@ int libxl_devid_to_device_disk(struct li } val = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/backend-id", diskpath)); + if (!val) + return ERROR_FAIL; disk->backend_domid = strtoul(val, NULL, 10); disk->domid = domid; be_path = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/backend", diskpath)); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |