Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2450
b: refs/heads/master
c: 73219d1
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wright authored and Linus Torvalds committed Jun 22, 2005
1 parent 41083d4 commit 8738ef6
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: 1363c3cd8603a913a27e2995dccbd70d5312d8e6
refs/heads/master: 73219d178051691a56d57184d8c7f6d0cbe3c5c1
4 changes: 4 additions & 0 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,9 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
return (mm->free_area_cache = addr-len);
}

if (mm->mmap_base < len)
goto bottomup;

addr = mm->mmap_base-len;

do {
Expand All @@ -1288,6 +1291,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
addr = vma->vm_start-len;
} while (len < vma->vm_start);

bottomup:
/*
* A failed mmap() very likely causes application failure,
* so fall back to the bottom-up function here. This scenario
Expand Down

0 comments on commit 8738ef6

Please sign in to comment.