mm/mremap.c: call pud_free() after fail calling pmd_alloc()
authorChen Gang <gang.chen@asianux.com>
Wed, 11 Sep 2013 21:22:43 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:03 +0000 (15:58 -0700)
commit1ecfd533f4c528b0b4cc5bc115c4c47f0b5e4828
tree5eb1a6053fe7999323ed7238e6cb4993652b05c5
parent762216ab4e175f49d17bc7ad778c57b9028184e6
mm/mremap.c: call pud_free() after fail calling pmd_alloc()

In alloc_new_pmd(), if pud_alloc() was called successfully, but
pmd_alloc() fails, avoid leaking `pud'.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mremap.c