Commit:     4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09
Parent:     d506a7725114aaddbf982fd18621b3e0e5c27f1b
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Sun May 6 14:50:06 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon May 7 12:12:56 2007 -0700

    get_unmapped_area handles MAP_FIXED on alpha
    Handle MAP_FIXED in alpha's arch_get_unmapped_area(), simple case, just 
    the address as passed in
    Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Cc: Richard Henderson <[EMAIL PROTECTED]>
    Cc: Ivan Kokshaysky <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/alpha/kernel/osf_sys.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index be133f1..67ae41d 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 
        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
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to