summaryrefslogtreecommitdiff
path: root/linux-core/drm_vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_vm.c')
-rw-r--r--linux-core/drm_vm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c
index aed0e04f..76d7fb4e 100644
--- a/linux-core/drm_vm.c
+++ b/linux-core/drm_vm.c
@@ -274,8 +274,7 @@ static __inline__ struct page *drm_do_vm_ttm_nopage(struct vm_area_struct *vma,
return NOPAGE_OOM;
}
++bm->cur_pages;
- page = ttm->pages[page_offset] =
- alloc_page(GFP_KERNEL);
+ page = ttm->pages[page_offset] = drm_alloc_gatt_pages(0);
}
if (!page)
return NOPAGE_OOM;