[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Prevent opening the xenbus device if the store isn't connected yet.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 0fad07d67e758290d5921a82f6099fa6c186099f # Parent f804b28871baa0cd6b58a3c446a0a1b399eba4c3 Prevent opening the xenbus device if the store isn't connected yet. Running xenstore clients using the xenbus device before the store connection has been set up causes a crash because the store page won't have been allocated yet. This is only a problem in dom0 where we setup the store page from the PRIVCMD_INITDOMAIN_STORE ioctl. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r f804b28871ba -r 0fad07d67e75 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c Tue Sep 13 09:11:58 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c Tue Sep 13 10:05:49 2005 @@ -130,6 +130,9 @@ { struct xenbus_dev_data *u; + if (xen_start_info->store_evtchn == 0) + return -ENOENT; + /* Don't try seeking. */ nonseekable_open(inode, filp); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |