uml: free LDT state on process exit
authorJeff Dike <[email protected]>
Tue, 16 Oct 2007 08:27:08 +0000 (01:27 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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);
 }