uml: fix order of pud and pmd_free()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 22 Sep 2009 00:04:11 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:45 +0000 (07:17 -0700)
commit4d04c70754eec6d0fd342a5bc3f684db69cc2226
tree4001855784fddcec748e2f9754933a537d04c7d4
parentdb4e5cbe2f201c6abd51f7dfe41dbd2589affeba
uml: fix order of pud and pmd_free()

If pmd_alloc() fails we should only free the prior allocated pud, if
pte_alloc_map() fails, we should free pmd as well.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/skas/mmu.c