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/dma-buf | |
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/dma-buf')
-rw-r--r-- | drivers/dma-buf/dma-buf.c | 3 |
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); |