summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2010-06-04 14:14:58 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-06-04 15:21:45 -0700
commitfc0ccfceb8aa6800040ba4f37a36ee306aa71c9f (patch)
treebd6adb2992e03dc9ff6a0a33510522383e2d0b79 /arch/um
parent485d527686850d68a0e9006dd9904f19f122485e (diff)
downloadlinux-stable-fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f.tar.gz
linux-stable-fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f.tar.bz2
linux-stable-fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f.zip
arch/um: fix kunmap_atomic() call in skas/uaccess.c
kunmap_atomic() takes a pointer to within the page, not the struct page. Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/skas/uaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index e22c96993db3..696634214dc6 100644
--- a/arch/um/kernel/skas/uaccess.c
+++ b/arch/um/kernel/skas/uaccess.c
@@ -81,7 +81,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
current->thread.fault_catcher = NULL;
- kunmap_atomic(page, KM_UML_USERCOPY);
+ kunmap_atomic((void *)addr, KM_UML_USERCOPY);
return n;
}