Skip to contentSkip to conversation

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

PATCH New Cesar Eduardo Barros 1 participant 1 message May 28, 2010 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/um: fix kunmap_atomic call in skas/uaccess.c

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

---
 arch/um/kernel/skas/uaccess.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/um/kernel/skas/uaccess.c +1 -1
index e22c969..6966342 100644
@@ -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;
 }
Signature · 1 line
1.6.6.1