From 28078e8f9790be0854a54f06de822689ab571944 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Tue, 16 Oct 2007 01:27:08 -0700 Subject: [PATCH] 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 --- arch/um/kernel/skas/mmu.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.41.1