[media] V4L: soc-camera: make (almost) all client drivers re-usable outside of the...
[deliverable/linux.git] / drivers / media / video / videobuf2-memops.c
index 569eeb3dfd506d4647ca9dae2e54db7213e816ec..71a7a78c3fc05ce039b87661644f880ea15b4a79 100644 (file)
@@ -68,12 +68,12 @@ void vb2_put_vma(struct vm_area_struct *vma)
        if (!vma)
                return;
 
-       if (vma->vm_file)
-               fput(vma->vm_file);
-
        if (vma->vm_ops && vma->vm_ops->close)
                vma->vm_ops->close(vma);
 
+       if (vma->vm_file)
+               fput(vma->vm_file);
+
        kfree(vma);
 }
 EXPORT_SYMBOL_GPL(vb2_put_vma);
This page took 0.025354 seconds and 5 git commands to generate.