Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70dfcfea authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

drm: missing drm_vm.c changes for consistent maps



This adds a missing change from CVS for consistent maps.

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 908f9c48
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -148,7 +148,8 @@ static __inline__ struct page *drm_do_vm_shm_nopage(struct vm_area_struct *vma,

	offset	 = address - vma->vm_start;
	i = (unsigned long)map->handle + offset;
	page = vmalloc_to_page((void *)i);
	page = (map->type == _DRM_CONSISTENT) ? 
		virt_to_page((void *)i) : vmalloc_to_page((void *)i);
	if (!page)
		return NOPAGE_OOM;
	get_page(page);