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 c11316e..35126ee 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 076102e..3acf980 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