Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40909
b: refs/heads/master
c: cb07c9a
h: refs/heads/master
i:
  40907: a18020b
v: v3
  • Loading branch information
David Gibson authored and Linus Torvalds committed Nov 14, 2006
1 parent a6aac72 commit 704b49a
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: 68589bc353037f233fe510ad9ff432338c95db66
refs/heads/master: cb07c9a1864a8eac9f3123e428100d5b2a16e65a
4 changes: 4 additions & 0 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,10 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
if ((addr + len) > TASK_SIZE || (addr + len) < addr)
return -EINVAL;

error = is_hugepage_only_range(current->mm, addr, len);
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 704b49a

Please sign in to comment.