Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361292
b: refs/heads/master
c: 6d7825b
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 13, 2013
1 parent e5fcca6 commit a909717
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8615d3716fe327c2540cf514a34b227dc9b39e8
refs/heads/master: 6d7825b10dbeafd60627cd04291fb10ec2b5b973
6 changes: 4 additions & 2 deletions trunk/mm/fremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
* and that the remapped range is valid and fully within
* the single existing vma.
*/
if (!vma || !(vma->vm_flags & VM_SHARED))
vm_flags = vma->vm_flags;
if (!vma || !(vm_flags & VM_SHARED))
goto out;

if (!vma->vm_ops || !vma->vm_ops->remap_pages)
Expand Down Expand Up @@ -254,7 +255,8 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
*/

out:
vm_flags = vma->vm_flags;
if (vma)
vm_flags = vma->vm_flags;
if (likely(!has_write_lock))
up_read(&mm->mmap_sem);
else
Expand Down

0 comments on commit a909717

Please sign in to comment.