Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40913
b: refs/heads/master
c: cd2579d
h: refs/heads/master
i:
  40911: d1f5127
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Nov 14, 2006
1 parent bff5c1e commit 0a2ab35
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1f794b6082a5ff88f7c48d1634056026acf806f4
refs/heads/master: cd2579d7aa7bfc966cc271a88e77f8cfc3b0b7ba
5 changes: 2 additions & 3 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1880,9 +1880,8 @@ 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;
if (is_hugepage_only_range(mm, addr, len))
return -EINVAL;

flags = VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT | mm->def_flags;

Expand Down

0 comments on commit 0a2ab35

Please sign in to comment.