Skip to contentSkip to conversation

libxl: initialise rc in libxl__domain_save error path

PATCH In review Wei Liu 2 participants 2 messages Feb 27, 2016 – Feb 28, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 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.

---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Wen Congyang <[email protected]>

---
 tools/libxl/libxl_dom_save.c | 1 +
 1 file changed, 1 insertion(+)
tools/libxl/libxl_dom_save.c +1 -0
index 4eb7960..f3288b9 100644
@@ -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;
     }
 
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 5 lines · Wei Liu

Commit 7449fb36 ("migration/save: pass checkpointed_stream from libxl to libxc ") failed to initialise rc in the error path.

Reviewed and applied.

Quoted 24 lines

---
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Wen Congyang <[email protected]>

---
 tools/libxl/libxl_dom_save.c | 1 +
 1 file changed, 1 insertion(+)
tools/libxl/libxl_dom_save.c +1 -1
index 4eb7960..f3288b9 100644
@@ -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;
     }
 
--

2.1.4

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel