Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/kernel/
Dldt.c467 struct ldt_struct *new_ldt, *old_ldt; in write_ldt() local
508 old_ldt = mm->context.ldt; in write_ldt()
509 old_nr_entries = old_ldt ? old_ldt->nr_entries : 0; in write_ldt()
517 if (old_ldt) in write_ldt()
518 memcpy(new_ldt->entries, old_ldt->entries, old_nr_entries * LDT_ENTRY_SIZE); in write_ldt()
529 error = map_ldt_struct(mm, new_ldt, old_ldt ? !old_ldt->slot : 0); in write_ldt()
536 if (!WARN_ON_ONCE(old_ldt)) in write_ldt()
543 unmap_ldt_struct(mm, old_ldt); in write_ldt()
544 free_ldt_struct(old_ldt); in write_ldt()