Prev: 2.6.34-rc3: simple du (on a big xfs tree) triggers oom killer
Next: Swap including order of util.h and string.h of util/string.c
From: Rik van Riel on 4 Apr 2010 19:20 Fix a memory leak in anon_vma_fork(), where we fail to tear down the anon_vmas attached to the new VMA in case setting up the new anon_vma fails. Reported-by: Minchan Kim <minchan.kim(a)gmail.com> Signed-off-by: Rik van Riel <riel(a)redhat.com> diff --git a/mm/rmap.c b/mm/rmap.c index fcd593c..fb7ce99 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -231,6 +231,7 @@ int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma) out_error_free_anon_vma: anon_vma_free(anon_vma); + unlink_anon_vmas(vma); out_error: return -ENOMEM; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |