From: Jeff Dike Date: Tue, 16 Oct 2007 08:27:08 +0000 (-0700) Subject: uml: free LDT state on process exit X-Git-Tag: v2.6.24-rc1~1059 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=28078e8f9790be0854a54f06de822689ab571944;p=~shefty%2Frdma-dev.git uml: free LDT state on process exit The space allocated for a process LDT wasn't being freed when the process exited. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index 48c8c136c03..ae79888cf52 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c @@ -149,4 +149,6 @@ void destroy_context(struct mm_struct *mm) pmd_free((pmd_t *) mmu->last_pmd); #endif } + + free_ldt(mmu); }