]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdcbc79561087156e6ec79f4e871bb141812b8eed
tree4001855784fddcec748e2f9754933a537d04c7d4
parent736b6bbbe828f4c064a7586eed181b9c0d4456f3
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