summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/dma-buf.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-11-05 17:05:35 +0100
committerChristian König <christian.koenig@amd.com>2020-11-05 17:08:43 +0100
commite40b0b56ffdc16edce207904a7782da6a1a47162 (patch)
tree53dfe71f25c1525d5b52474ec9d18460c2cc66fc /drivers/dma-buf/dma-buf.c
parentdma-buf: Fix static checker warning (diff)
downloadlinux-e40b0b56ffdc16edce207904a7782da6a1a47162.tar.xz
linux-e40b0b56ffdc16edce207904a7782da6a1a47162.zip
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/dma-buf/dma-buf.c')
-rw-r--r--drivers/dma-buf/dma-buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c
index e63684d4cd90..282bd8b84170 100644
--- a/drivers/dma-buf/dma-buf.c
+++ b/drivers/dma-buf/dma-buf.c
@@ -1183,7 +1183,8 @@ int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma,
return -EINVAL;
/* readjust the vma */
- vma_set_file(vma, dmabuf->file);
+ fput(vma->vm_file);
+ vma->vm_file = get_file(dmabuf->file);
vma->vm_pgoff = pgoff;
return dmabuf->ops->mmap(dmabuf, vma);