Skip to content

Commit

Permalink
get_unmapped_area handles MAP_FIXED on x86_64
Browse files Browse the repository at this point in the history
Handle MAP_FIXED in x86_64 arch_get_unmapped_area(), simple case, just return
the address as passed in

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed May 7, 2007
1 parent ac35ee4 commit 11300a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86_64/kernel/sys_x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
unsigned long start_addr;
unsigned long begin, end;

if (flags & MAP_FIXED)
return addr;

find_start_end(flags, &begin, &end);

if (len > end)
Expand Down

0 comments on commit 11300a6

Please sign in to comment.