summaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2007-10-23 20:36:14 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-23 22:42:07 -0700
commitd58aa8c7b1cc0add7b03e26bdb8988d98d2f4cd1 (patch)
treecaafa70c94113c7b3b84c69b6e28e15de473a66e /arch/sparc64
parentc9927c2bf4f45bb85e8b502ab3fb79ad6483c244 (diff)
downloadop-kernel-dev-d58aa8c7b1cc0add7b03e26bdb8988d98d2f4cd1.zip
op-kernel-dev-d58aa8c7b1cc0add7b03e26bdb8988d98d2f4cd1.tar.gz
[SPARC64]: pass correct addr in get_fb_unmapped_area(MAP_FIXED)
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>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/sys_sparc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/sys_sparc.c b/arch/sparc64/kernel/sys_sparc.c
index 560cb1e..c56573a 100644
--- a/arch/sparc64/kernel/sys_sparc.c
+++ b/arch/sparc64/kernel/sys_sparc.c
@@ -318,7 +318,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;
OpenPOWER on IntegriCloud