This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [BLKTAP] Fix crash at start-of-day in blktapctrld
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Oct 2006 19:00:31 +0000
Delivery-date: Fri, 06 Oct 2006 12:00:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [BLKTAP] Fix crash at start-of-day in blktapctrld, Xen patchbot-unstable <=