Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164478
b: refs/heads/master
c: cdf7b34
h: refs/heads/master
v: v3
  • Loading branch information
Huang Shijie authored and Linus Torvalds committed Sep 22, 2009
1 parent 6d048be commit 68ef852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 03f6462a3ae78f36eb1f0ee8b4d5ae2f7859c1d5
refs/heads/master: cdf7b3418ad5a8783efe8f9124023d9b869fec0f
4 changes: 1 addition & 3 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,11 +963,9 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags) |
mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;

if (flags & MAP_LOCKED) {
if (flags & MAP_LOCKED)
if (!can_do_mlock())
return -EPERM;
vm_flags |= VM_LOCKED;
}

/* mlock MCL_FUTURE? */
if (vm_flags & VM_LOCKED) {
Expand Down

0 comments on commit 68ef852

Please sign in to comment.