Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ int __anon_vma_prepare(struct vm_area_struct *vma)
if (unlikely(!anon_vma))
goto out_enomem_free_avc;
anon_vma->num_children++; /* self-parent link for new root */
anon_vma->num_children++; /* self-parent link for new root */
allocated = anon_vma;
}

Expand Down Expand Up @@ -360,6 +361,7 @@ int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma)
if (!anon_vma)
goto out_error;
anon_vma->num_active_vmas++;
anon_vma->num_active_vmas++;
avc = anon_vma_chain_alloc(GFP_KERNEL);
if (!avc)
goto out_error_free_anon_vma;
Expand Down