From: Benjamin Herrenschmidt Date: Sun, 6 May 2007 21:50:06 +0000 (-0700) Subject: get_unmapped_area handles MAP_FIXED on alpha X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09;p=openwrt%2Fstaging%2Fblogic.git get_unmapped_area handles MAP_FIXED on alpha Handle MAP_FIXED in alpha's arch_get_unmapped_area(), simple case, just return the address as passed in Signed-off-by: Benjamin Herrenschmidt Cc: Richard Henderson Cc: Ivan Kokshaysky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index be133f1f75a4..67ae41dcb6fa 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -1267,6 +1267,9 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, if (len > limit) return -ENOMEM; + if (flags & MAP_FIXED) + return addr; + /* First, see if the given suggestion fits. The OSF/1 loader (/sbin/loader) relies on us returning an