libxl: various fixes to libxl_device_disk_list (and internals)
authorIan Campbell <ian.campbell@citrix.com>
Tue, 18 Oct 2011 09:35:55 +0000 (10:35 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 18 Oct 2011 09:35:55 +0000 (10:35 +0100)
commitf840d898c7a740e18008c183ab13d270120d57d2
tree5018c37bcc249c904b62538a6907cdb4149cf812
parent134fa16eb6a18b50725a5b4fa84b5284e9acddd4
libxl: various fixes to libxl_device_disk_list (and internals)

- handle realloc errors
- remove redundancy of libxl__append_disk_list_of_type return value
  and ndisks paramter.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl.c