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

[Xen-changelog] [xen master] libxl: initialise rc in libxl__domain_save error path



commit 42391c613d42248d82f1b04c523d48bf141b75dc
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Sun Feb 28 16:03:51 2016 -0500
Commit:     Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
CommitDate: Sun Feb 28 16:03:51 2016 -0500

    libxl: initialise rc in libxl__domain_save error path
    
    Commit 7449fb36 ("migration/save: pass checkpointed_stream from libxl to
    libxc ") failed to initialise rc in the error path.
    
    Reported-by: Olaf Hering <olaf@xxxxxxxxx>
    Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
 tools/libxl/libxl_dom_save.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libxl/libxl_dom_save.c b/tools/libxl/libxl_dom_save.c
index 4eb7960..f3288b9 100644
--- a/tools/libxl/libxl_dom_save.c
+++ b/tools/libxl/libxl_dom_save.c
@@ -341,6 +341,7 @@ void libxl__domain_save(libxl__egc *egc, 
libxl__domain_save_state *dss)
     if (dss->checkpointed_stream != LIBXL_CHECKPOINTED_STREAM_NONE && !r_info) 
{
         LOG(ERROR, "Migration stream is checkpointed, but there's no "
                    "checkpoint info!");
+        rc = ERROR_INVAL;
         goto out;
     }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
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®.