The patch titled mm: nommu: fix a potential memory leak in do_mmap_private() has been removed from the -mm tree. Its filename was mm-nommu-fix-a-potential-memory-leak-in-do_mmap_private.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: nommu: fix a potential memory leak in do_mmap_private() From: Namhyung Kim <namhyung@xxxxxxxxx> If f_op->read() fails and sysctl_nr_trim_pages > 1, there could be a memory leak between @region->vm_end and @region->vm_top. Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx> Acked-by: Greg Ungerer <gerg@xxxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Cc: Paul Mundt <lethal@xxxxxxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/nommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/nommu.c~mm-nommu-fix-a-potential-memory-leak-in-do_mmap_private mm/nommu.c --- a/mm/nommu.c~mm-nommu-fix-a-potential-memory-leak-in-do_mmap_private +++ a/mm/nommu.c @@ -1217,7 +1217,7 @@ static int do_mmap_private(struct vm_are return 0; error_free: - free_page_series(region->vm_start, region->vm_end); + free_page_series(region->vm_start, region->vm_top); region->vm_start = vma->vm_start = 0; region->vm_end = vma->vm_end = 0; region->vm_top = 0; _ Patches currently in -mm which might be from namhyung@xxxxxxxxx are origin.patch memcg-mark-init_section_page_cgroup-properly.patch memcg-fix-off-by-one-when-calculating-swap-cgroup-map-length.patch memcg-move-page-freeing-code-out-of-lock.patch maintainers-add-mm-page_cgroupc-into-memcg-subsystem.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html