libxl: initialise rc in libxl__domain_save error path
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
@@ -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
Quoted 5 lines · Wei Liu
Commit
7449fb36("migration/save: passcheckpointed_streamfrom libxl to libxc ") failed to initialise rc in the error path.Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>
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@@ -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