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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jeff Dike 2007-10-16 01:27:08 -07:00 • committed by Linus Torvalds
commit 28078e8f97

View file

@ -149,4 +149,6 @@ void destroy_context(struct mm_struct *mm)
pmd_free((pmd_t *) mmu->last_pmd);
#endif
}
free_ldt(mmu);
}