diff options
author | Christian König <christian.koenig@amd.com> | 2020-11-05 17:05:35 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-05 17:08:43 +0100 |
commit | e40b0b56ffdc16edce207904a7782da6a1a47162 (patch) | |
tree | 53dfe71f25c1525d5b52474ec9d18460c2cc66fc /drivers/gpu/drm/omapdrm | |
parent | 00efd65a65968fddd9816315ce190c1fa3bfcd29 (diff) |
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/omapdrm')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index f063f5a04fb0..d8e09792793a 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -564,8 +564,9 @@ int omap_gem_mmap_obj(struct drm_gem_object *obj, * address_space (so unmap_mapping_range does what we want, * in particular in the case of mmap'd dmabufs) */ + fput(vma->vm_file); vma->vm_pgoff = 0; - vma_set_file(vma, obj->filp); + vma->vm_file = get_file(obj->filp); vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); } |