Revert "nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error"
This reverts commit 0486357541
.
This commit is contained in:
parent
718af7c653
commit
7e10dfc7ee
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ static vm_fault_t nouveau_dmem_fault_copy_one(struct nouveau_drm *drm,
|
|||
if (!spage || !(args->src[0] & MIGRATE_PFN_MIGRATE))
|
||||
return 0;
|
||||
|
||||
dpage = alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO, vmf->vma, vmf->address);
|
||||
dpage = alloc_page_vma(GFP_HIGHUSER, vmf->vma, vmf->address);
|
||||
if (!dpage)
|
||||
return VM_FAULT_SIGBUS;
|
||||
lock_page(dpage);
|
||||
|
|
Loading…
Reference in a new issue