[CRIU] [PATCH 3/5] vma: Don't copy VmaEntry on vma_area

Pavel Emelyanov xemul at parallels.com
Mon Feb 3 12:08:30 PST 2014


After previous patch is't now possible.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 mem.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mem.c b/mem.c
index 1003872..a4cbfb7 100644
--- a/mem.c
+++ b/mem.c
@@ -371,9 +371,8 @@ int prepare_mm_pid(struct pstree_item *i)
 		}
 
 		ri->vmas.nr++;
-		*vma->e = *vi;
+		vma->e = vi;
 		list_add_tail(&vma->list, &ri->vmas.h);
-		vma_entry__free_unpacked(vi, NULL);
 
 		if (vma_priv(vma->e)) {
 			ri->vmas.priv_size += vma_area_len(vma);
-- 
1.8.4.2


More information about the CRIU mailing list