ia64/linux-2.6.18-xen.hg

changeset 501:080b0c482ad6

Avoid kernel hang reading /sys/hypervisor/uuid if xenstore is not available.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Fri Mar 28 10:21:17 2008 +0000 (2008-03-28)
parents 0637d22ed554
children 171ffa6bf3a5
files drivers/xen/core/xen_sysfs.c
line diff
     1.1 --- a/drivers/xen/core/xen_sysfs.c	Fri Mar 28 09:49:22 2008 +0000
     1.2 +++ b/drivers/xen/core/xen_sysfs.c	Fri Mar 28 10:21:17 2008 +0000
     1.3 @@ -104,6 +104,10 @@ static ssize_t uuid_show(struct hyp_sysf
     1.4  {
     1.5  	char *vm, *val;
     1.6  	int ret;
     1.7 +	extern int xenstored_ready;
     1.8 +
     1.9 +	if (!xenstored_ready)
    1.10 +		return -EBUSY;
    1.11  
    1.12  	vm = xenbus_read(XBT_NIL, "vm", "", NULL);
    1.13  	if (IS_ERR(vm))