Revert "nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error"

This reverts commit 0486357541.
This commit is contained in:
Ksawlii 2024-11-24 00:22:55 +01:00
parent 718af7c653
commit 7e10dfc7ee

View file

@ -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);