From: Jeff Dike Date: Tue, 16 Oct 2007 08:27:08 +0000 (-0700) Subject: uml: free LDT state on process exit X-Git-Tag: firefly_0821_release~25675 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=28078e8f9790be0854a54f06de822689ab571944;p=firefly-linux-kernel-4.4.55.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 48c8c136c038..ae79888cf520 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); }