Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36167
b: refs/heads/master
c: d00c7b9
h: refs/heads/master
i:
  36165: 7474ddc
  36163: bdbe7fd
  36159: 4864c29
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Sep 27, 2006
1 parent b06c110 commit 7e5451f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7b4d5b8b39fd3701ed3693a89f2bd8f6ef49bce2
refs/heads/master: d00c7b993712e4bb16d0012b35b654e40159b327
4 changes: 2 additions & 2 deletions trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,9 +1258,9 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
len = vma->vm_end - addr;

/* only read or write mappings where it is permitted */
if (write && vma->vm_flags & VM_WRITE)
if (write && vma->vm_flags & VM_MAYWRITE)
len -= copy_to_user((void *) addr, buf, len);
else if (!write && vma->vm_flags & VM_READ)
else if (!write && vma->vm_flags & VM_MAYREAD)
len -= copy_from_user(buf, (void *) addr, len);
else
len = 0;
Expand Down

0 comments on commit 7e5451f

Please sign in to comment.