Searched refs:new_ldt (Results 1 – 1 of 1) sorted by relevance
151 struct ldt_struct *new_ldt; in alloc_ldt_struct() local157 new_ldt = kmalloc(sizeof(struct ldt_struct), GFP_KERNEL_ACCOUNT); in alloc_ldt_struct()158 if (!new_ldt) in alloc_ldt_struct()171 new_ldt->entries = __vmalloc(alloc_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO); in alloc_ldt_struct()173 new_ldt->entries = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); in alloc_ldt_struct()175 if (!new_ldt->entries) { in alloc_ldt_struct()176 kfree(new_ldt); in alloc_ldt_struct()181 new_ldt->slot = -1; in alloc_ldt_struct()183 new_ldt->nr_entries = num_entries; in alloc_ldt_struct()184 return new_ldt; in alloc_ldt_struct()[all …]