: fix xenstore VM parameters read
stubdom: fix xenstore VM parameters read
For now, stub domains can not read the uuid, and thus xenstore_vm_key_path fails(). We have to cope with that instead of passing NULL to xs_read().
Signed-off-by Samuel Thibault <[email protected]>
xenstore.c +2 -0
@@ -1124,6 +1124,8 @@ char *xenstore_vm_read(int domid, char *key, unsigned int *len)char *path =NULL , *value =NULL ; path =xenstore_vm_key_path (domid, key); +if (!path) +return NULL ; value =xs_read (xsh,XBT_NULL , path, len);if (value ==NULL ) {
PATCH 1/1 : fix xenstore VM parameters read
I forgot the [PATCH] prefix to get Keir's attention :)
Samuel Thibault, le Mon 10 Nov 2008 02:22:23 +0100, a écrit :
stubdom: fix xenstore VM parameters read
For now, stub domains can not read the uuid, and thus xenstore_vm_key_path fails(). We have to cope with that instead of passing NULL to xs_read().
Signed-off-by Samuel Thibault <[email protected]>
xenstore.c +2 -0
@@ -1124,6 +1124,8 @@ char *xenstore_vm_read(int domid, char *key, unsigned int *len)char *path =NULL , *value =NULL ; path =xenstore_vm_key_path (domid, key); +if (!path) +return NULL ; value =xs_read (xsh,XBT_NULL , path, len);if (value ==NULL ) {