The patch titled alloc_vmap_area: fix memory leak has been added to the -mm tree. Its filename is alloc_vmap_area-fix-memory-leak.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: alloc_vmap_area: fix memory leak From: Ralph Wuerthner <ralphw@xxxxxxxxxxxxxxxxxx> If alloc_vmap_area() fails the allocated struct vmap_area has to be freed. Signed-off-by: Ralph Wuerthner <ralphw@xxxxxxxxxxxxxxxxxx> Reviewed-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx> Cc: Nick Piggin <npiggin@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmalloc.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/vmalloc.c~alloc_vmap_area-fix-memory-leak mm/vmalloc.c --- a/mm/vmalloc.c~alloc_vmap_area-fix-memory-leak +++ a/mm/vmalloc.c @@ -403,6 +403,7 @@ overflow: printk(KERN_WARNING "vmap allocation for size %lu failed: " "use vmalloc=<size> to increase size.\n", size); + kfree(va); return ERR_PTR(-EBUSY); } _ Patches currently in -mm which might be from ralphw@xxxxxxxxxxxxxxxxxx are alloc_vmap_area-fix-memory-leak.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