diff options
author | Cesar Eduardo Barros <cesarb@cesarb.net> | 2010-06-04 17:14:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-06-04 18:21:45 -0400 |
commit | fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f (patch) | |
tree | bd6adb2992e03dc9ff6a0a33510522383e2d0b79 /arch/um/kernel | |
parent | 485d527686850d68a0e9006dd9904f19f122485e (diff) |
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/kernel')
-rw-r--r-- | arch/um/kernel/skas/uaccess.c | 2 |
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, | |||
81 | 81 | ||
82 | current->thread.fault_catcher = NULL; | 82 | current->thread.fault_catcher = NULL; |
83 | 83 | ||
84 | kunmap_atomic(page, KM_UML_USERCOPY); | 84 | kunmap_atomic((void *)addr, KM_UML_USERCOPY); |
85 | 85 | ||
86 | return n; | 86 | return n; |
87 | } | 87 | } |