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

[Xen-changelog] [xen stable-4.1] libxl: Fix uninitialized variable in libxl_create_stubdom



commit 1f0ffb6d2deeb5c4f0744527da542dc6e46772cd
Author:     Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
AuthorDate: Sun Feb 24 01:22:00 2013 +0000
Commit:     Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Tue Feb 26 17:48:04 2013 +0000

    libxl: Fix uninitialized variable in libxl_create_stubdom
    
    It is used for result domid from libxl__domain_make, but actually this
    function have assert on an initial value.
    
    This patch is intended for xen-4.1 only - 4.2 and later have reworked
    this part of code already containing the fix.
    
    Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
    Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_dm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 1ffcc90..d43a1fc 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -458,7 +458,7 @@ static int libxl_create_stubdom(libxl_ctx *ctx,
     libxl_domain_create_info c_info;
     libxl_domain_build_info b_info;
     libxl_domain_build_state state;
-    uint32_t domid;
+    uint32_t domid = 0;
     char **args;
     struct xs_permissions perm[2];
     xs_transaction_t t;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.1

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.