]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SPARC64] pass correct addr in get_fb_unmapped_area(MAP_FIXED)
authorChris Wright <chrisw@sous-sol.org>
Wed, 24 Oct 2007 19:54:41 +0000 (21:54 +0200)
committerAdrian Bunk <bunk@kernel.org>
Thu, 1 Nov 2007 02:57:51 +0000 (03:57 +0100)
Looks like the MAP_FIXED case is using the wrong address hint.  I'd
expect the comment "don't mess with it" means pass the request
straight on through, not change the address requested to -ENOMEM.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
arch/sparc64/kernel/sys_sparc.c

index 8b222f2478f542030a790b592364e525e5b16579..f40a51943f6b084473306bf3b7e042e0effc5161 100644 (file)
@@ -135,7 +135,7 @@ unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, u
 
        if (flags & MAP_FIXED) {
                /* Ok, don't mess with it. */
-               return get_unmapped_area(NULL, addr, len, pgoff, flags);
+               return get_unmapped_area(NULL, orig_addr, len, pgoff, flags);
        }
        flags &= ~MAP_SHARED;