Skip to content
Snippets Groups Projects
Commit 9b8ce25b authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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

SVN-Revision: 14902
parent 1c7a0365
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
- fput(vma->vm_file); - fput(vma->vm_file);
- vma->vm_file = file; - vma->vm_file = file;
- vma->vm_ops = &shmem_vm_ops; - vma->vm_ops = &shmem_vm_ops;
+ shmem_set_file(vma, vma->vm_file); + shmem_set_file(vma, file);
return 0; return 0;
} }
--- a/fs/file.c --- a/fs/file.c
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- fput(vma->vm_file); - fput(vma->vm_file);
- vma->vm_file = file; - vma->vm_file = file;
- vma->vm_ops = &shmem_vm_ops; - vma->vm_ops = &shmem_vm_ops;
+ shmem_set_file(vma, vma->vm_file); + shmem_set_file(vma, file);
return 0; return 0;
} }
--- a/fs/file.c --- a/fs/file.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment