mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
get_unmapped_area handles MAP_FIXED on frv
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>
This commit is contained in:
parent
acec0ac0a8
commit
2fd3bebaad
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user