diff options
Diffstat (limited to 'drivers/base/dma-buf.c')
-rw-r--r-- | drivers/base/dma-buf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index c30f3e1d0efc..460e22dee36d 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c | |||
@@ -460,8 +460,7 @@ int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma, | |||
460 | if (vma->vm_file) | 460 | if (vma->vm_file) |
461 | fput(vma->vm_file); | 461 | fput(vma->vm_file); |
462 | 462 | ||
463 | vma->vm_file = dmabuf->file; | 463 | vma->vm_file = get_file(dmabuf->file); |
464 | get_file(vma->vm_file); | ||
465 | 464 | ||
466 | vma->vm_pgoff = pgoff; | 465 | vma->vm_pgoff = pgoff; |
467 | 466 | ||