Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25865
b: refs/heads/master
c: 69cf0fa
h: refs/heads/master
i:
  25863: ebb2857
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Apr 18, 2006
1 parent e9c9c61 commit 2f76b86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e14d95f773b7365b6ba2d2105522c92b007c6db1
refs/heads/master: 69cf0fac6052c5bd3fb3469a41d4216e926028f8
3 changes: 3 additions & 0 deletions trunk/mm/madvise.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ static long madvise_remove(struct vm_area_struct *vma,
return -EINVAL;
}

if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE))
return -EACCES;

mapping = vma->vm_file->f_mapping;

offset = (loff_t)(start - vma->vm_start)
Expand Down

0 comments on commit 2f76b86

Please sign in to comment.