Home
last modified time | relevance | path

Searched refs:old_ldt (Results 1 – 1 of 1) sorted by relevance

/linux/arch/x86/kernel/
H A Dldt.c581 struct ldt_struct *new_ldt, *old_ldt; in write_ldt() local
622 old_ldt = mm->context.ldt; in write_ldt()
623 old_nr_entries = old_ldt ? old_ldt->nr_entries : 0; in write_ldt()
631 if (old_ldt) in write_ldt()
632 memcpy(new_ldt->entries, old_ldt->entries, old_nr_entries * LDT_ENTRY_SIZE); in write_ldt()
643 error = map_ldt_struct(mm, new_ldt, old_ldt ? !old_ldt->slot : 0); in write_ldt()
650 if (!WARN_ON_ONCE(old_ldt)) in write_ldt()
657 unmap_ldt_struct(mm, old_ldt); in write_ldt()
658 free_ldt_struct(old_ldt); in write_ldt()