Skip to content

Commit

Permalink
get_unmapped_area handles MAP_FIXED on frv
Browse files Browse the repository at this point in the history
Handle MAP_FIXED in arch_get_unmapped_area on frv.  Trivial case, just return
the address.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Howells <dhowells@redhat.com>
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 acec0ac commit 2fd3beb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/frv/mm/elf-fdpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
if (len > TASK_SIZE)
return -ENOMEM;

/* handle MAP_FIXED */
if (flags & MAP_FIXED)
return addr;

/* only honour a hint if we're not going to clobber something doing so */
if (addr) {
addr = PAGE_ALIGN(addr);
Expand Down

0 comments on commit 2fd3beb

Please sign in to comment.