]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/base/dma-buf.c
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / base / dma-buf.c
index c30f3e1d0efcc7bcb443051cab59930b06d72b74..460e22dee36dbb2389524f7287eb103b936e2c58 100644 (file)
@@ -460,8 +460,7 @@ int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma,
        if (vma->vm_file)
                fput(vma->vm_file);
 
-       vma->vm_file = dmabuf->file;
-       get_file(vma->vm_file);
+       vma->vm_file = get_file(dmabuf->file);
 
        vma->vm_pgoff = pgoff;