[CRIU] [PATCH] pre-dump: handle errors from page_xfer_dump_pages()

Andrey Vagin avagin at openvz.org
Thu Jan 23 11:17:12 PST 2014


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cr-dump.c b/cr-dump.c
index 3c68b98..9476cd1 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1645,6 +1645,10 @@ err:
 		ret = page_xfer_dump_pages(&xfer, ctl->mem_pp, 0);
 
 		xfer.close(&xfer);
+
+		if (ret)
+			break;
+
 		timing_stop(TIME_MEMWRITE);
 
 		destroy_page_pipe(ctl->mem_pp);
-- 
1.8.3.1



More information about the CRIU mailing list