fix mmap issues caused by the vm_exports patch (thx, danm)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Mar 2009 22:14:22 +0000 (22:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 16 Mar 2009 22:14:22 +0000 (22:14 +0000)
SVN-Revision: 14902

target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch
target/linux/generic-2.6/patches-2.6.28/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
index 076102e26f3338b28bcf7499d078974bb0e03efc..3acf980a8507fc8a3f8979534fcc5d1de16397eb 100644 (file)
@@ -24,7 +24,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