uml: free LDT state on process exit
authorJeff Dike <jdike@addtoit.com>
Tue, 16 Oct 2007 08:27:08 +0000 (01:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:06 +0000 (09:43 -0700)
The space allocated for a process LDT wasn't being freed when the process
exited.

Signed-off-by: Jeff Dike <jdike@linux.intel.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

index 48c8c136c03855ac23c1e76fd866d0fcb34711d4..ae79888cf5200b76eab111dabf29ca2642c33d67 100644 (file)
@@ -149,4 +149,6 @@ void destroy_context(struct mm_struct *mm)
                pmd_free((pmd_t *) mmu->last_pmd);
 #endif
        }
+
+       free_ldt(mmu);
 }