projects/linux·commit fc0ccfce

arch/um: fix kunmap_atomic() call in skas/uaccess.c

fc0ccfce · Cesar Eduardo Barros <[email protected]> · 2010-06-04 14:14:58 -07:00

kunmap_atomic() takes a pointer to within the page, not the struct page.

Signed-off-by: Cesar Eduardo Barros <[email protected]>
Cc: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f
Parents
485d5276

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/um/kernel/skas/uaccess.cmodified+1−1View file

arch/um/kernel/skas/uaccess.c

View file
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index e22c969..6966342 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;
}