[CRIU] [PATCH] mem: handle errors of page_xfer_dump_pages()

Andrey Vagin avagin at openvz.org
Wed Jan 22 05:27:11 PST 2014


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

diff --git a/mem.c b/mem.c
index e5a6889..a0ed920 100644
--- a/mem.c
+++ b/mem.c
@@ -412,6 +412,8 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
 			goto out_pp;
 
 		ret = page_xfer_dump_pages(&xfer, pp, 0);
+		if (ret < 0)
+			goto out_pp;
 
 		xfer.close(&xfer);
 		timing_stop(TIME_MEMWRITE);
-- 
1.8.3.1



More information about the CRIU mailing list