fix mmap issues caused by the vm_exports patch (thx, danm)
[lede-git/.git] / target / linux / generic-2.6 / patches-2.6.27 / 980-vm_exports.patch
index c11316edf94fe25bb74011fda7024e8ce7d29f2c..35126ee8ff9746f0488dd03b43d6a0a4d18ec058 100644 (file)
@@ -25,7 +25,7 @@
 -              fput(vma->vm_file);
 -      vma->vm_file = file;
 -      vma->vm_ops = &shmem_vm_ops;
-+      shmem_set_file(vma, vma->vm_file);
++      shmem_set_file(vma, file);
        return 0;
  }
 --- a/fs/file.c