Home
last modified time | relevance | path

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

/arch/x86/kernel/
Dldt.c382 struct ldt_struct *new_ldt, *old_ldt; in write_ldt() local
423 old_ldt = mm->context.ldt; in write_ldt()
424 old_nr_entries = old_ldt ? old_ldt->nr_entries : 0; in write_ldt()
432 if (old_ldt) in write_ldt()
433 memcpy(new_ldt->entries, old_ldt->entries, old_nr_entries * LDT_ENTRY_SIZE); in write_ldt()
444 error = map_ldt_struct(mm, new_ldt, old_ldt ? !old_ldt->slot : 0); in write_ldt()
451 if (!WARN_ON_ONCE(old_ldt)) in write_ldt()
458 unmap_ldt_struct(mm, old_ldt); in write_ldt()
459 free_ldt_struct(old_ldt); in write_ldt()