1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 14:47:46 +01:00

fix mmap issues caused by the vm_exports patch (thx, danm)

SVN-Revision: 14902
This commit is contained in:
Felix Fietkau 2009-03-16 22:14:22 +00:00
parent 1c7a03659c
commit 9b8ce25ba3
2 changed files with 2 additions and 2 deletions

@ -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

@ -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