Revert "uprobes: Use kzalloc to allocate xol area"
This reverts commit 9a18ce1f12
.
This commit is contained in:
parent
afebebc45a
commit
d5a08b5325
1 changed files with 2 additions and 1 deletions
|
@ -1485,7 +1485,7 @@ static struct xol_area *__create_xol_area(unsigned long vaddr)
|
|||
uprobe_opcode_t insn = UPROBE_SWBP_INSN;
|
||||
struct xol_area *area;
|
||||
|
||||
area = kzalloc(sizeof(*area), GFP_KERNEL);
|
||||
area = kmalloc(sizeof(*area), GFP_KERNEL);
|
||||
if (unlikely(!area))
|
||||
goto out;
|
||||
|
||||
|
@ -1495,6 +1495,7 @@ static struct xol_area *__create_xol_area(unsigned long vaddr)
|
|||
goto free_area;
|
||||
|
||||
area->xol_mapping.name = "[uprobes]";
|
||||
area->xol_mapping.fault = NULL;
|
||||
area->xol_mapping.pages = area->pages;
|
||||
area->pages[0] = alloc_page(GFP_HIGHUSER);
|
||||
if (!area->pages[0])
|
||||
|
|
Loading…
Reference in a new issue