diff options
author | Christian König <christian.koenig@amd.com> | 2020-11-05 19:05:35 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-05 19:08:43 +0300 |
commit | e40b0b56ffdc16edce207904a7782da6a1a47162 (patch) | |
tree | 53dfe71f25c1525d5b52474ec9d18460c2cc66fc /drivers/gpu/drm/vgem | |
parent | 00efd65a65968fddd9816315ce190c1fa3bfcd29 (diff) | |
download | linux-e40b0b56ffdc16edce207904a7782da6a1a47162.tar.xz |
Revert "mm: introduce vma_set_file function v4"
The kernel test robot is not happy with that.
This reverts commit 2b5b95b1ff3d70a95013a45e3b5b90f1daf42348.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/394773/
Diffstat (limited to 'drivers/gpu/drm/vgem')
-rw-r--r-- | drivers/gpu/drm/vgem/vgem_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index ea0eecae5153..fa54a6d1403d 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -397,7 +397,8 @@ static int vgem_prime_mmap(struct drm_gem_object *obj, if (ret) return ret; - vma_set_file(vma, obj->filp); + fput(vma->vm_file); + vma->vm_file = get_file(obj->filp); vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags)); |