Commit ed836740 authored by Pavel Emelyanov's avatar Pavel Emelyanov

vma: Don't copy VmaEntry on vma_area

After previous patch is't now possible.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent eb1ae0a0
...@@ -371,9 +371,8 @@ int prepare_mm_pid(struct pstree_item *i) ...@@ -371,9 +371,8 @@ int prepare_mm_pid(struct pstree_item *i)
} }
ri->vmas.nr++; ri->vmas.nr++;
*vma->e = *vi; vma->e = vi;
list_add_tail(&vma->list, &ri->vmas.h); list_add_tail(&vma->list, &ri->vmas.h);
vma_entry__free_unpacked(vi, NULL);
if (vma_priv(vma->e)) { if (vma_priv(vma->e)) {
ri->vmas.priv_size += vma_area_len(vma); ri->vmas.priv_size += vma_area_len(vma);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment