alloc_vmap_area: fix memory leak
authorRalph Wuerthner <ralphw@linux.vnet.ibm.com>
Wed, 6 May 2009 23:02:59 +0000 (16:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 May 2009 23:36:10 +0000 (16:36 -0700)
commit2498ce42d3a4d1a498f1df4884da960087547db7
tree52e46a1b944aa0e2e291a3c847c4063827b725b4
parentca1eda2d75b855f434b1d5458534332ffad92d65
alloc_vmap_area: fix memory leak

If alloc_vmap_area() fails the allocated struct vmap_area has to be freed.

Signed-off-by: Ralph Wuerthner <ralphw@linux.vnet.ibm.com>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c