From: Samuel Thibault Subject: [PATCH] [stubdom]: fix xenstore VM parameters read Date: Mon, 10 Nov 2008 02:54:39 +0100 Message-ID: <20081110015439.GE4848@const.famille.thibault.fr> References: <20081110012223.GB4848@const.famille.thibault.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20081110012223.GB4848@const.famille.thibault.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I forgot the [PATCH] prefix to get Keir's attention :) Samuel Thibault, le Mon 10 Nov 2008 02:22:23 +0100, a =E9crit : 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 diff --git a/xenstore.c b/xenstore.c index d064df1..e7e0df5 100644 --- a/xenstore.c +++ b/xenstore.c @@ -1124,6 +1124,8 @@ char *xenstore_vm_read(int domid, char *key, unsign= ed int *len) char *path =3D NULL, *value =3D NULL; =20 path =3D xenstore_vm_key_path(domid, key); + if (!path) + return NULL; =20 value =3D xs_read(xsh, XBT_NULL, path, len); if (value =3D=3D NULL) {