[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [BLKTAP] Fix crash at start-of-day in blktapctrld



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 9ab5db36c98742a46677aeb6a01aabd4ef2c70bf
# Parent  ff9746d600e9041810a089bc085be3fbc022ad31
[BLKTAP] Fix crash at start-of-day in blktapctrld
if /local/domain does not exist.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/blktap/lib/xs_api.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r ff9746d600e9 -r 9ab5db36c987 tools/blktap/lib/xs_api.c
--- a/tools/blktap/lib/xs_api.c Fri Oct 06 15:04:42 2006 +0100
+++ b/tools/blktap/lib/xs_api.c Fri Oct 06 15:05:30 2006 +0100
@@ -179,6 +179,8 @@ char *get_dom_domid(struct xs_handle *h)
        }
        
        e = xs_directory(h, xth, "/local/domain", &num);
+       if (e == NULL)
+           return NULL;
 
        for (i = 0; (i < num) && (domid == NULL); i++) {
                asprintf(&path, "/local/domain/%s/name", e[i]);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.