Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74644
b: refs/heads/master
c: 5a211a5
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed Dec 5, 2007
1 parent 63813f5 commit acbaff7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7cd94146cd504016315608e297219f9fb7b1413b
refs/heads/master: 5a211a5deabcafdc764817d5b4510c767d317ddc
4 changes: 4 additions & 0 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,10 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
if (is_hugepage_only_range(mm, addr, len))
return -EINVAL;

error = security_file_mmap(0, 0, 0, 0, addr, 1);
if (error)
return error;

flags = VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT | mm->def_flags;

error = arch_mmap_check(addr, len, flags);
Expand Down

0 comments on commit acbaff7

Please sign in to comment.