diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/skas/uaccess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c index 9fefd924fb49..cd7df79c6a56 100644 --- a/arch/um/kernel/skas/uaccess.c +++ b/arch/um/kernel/skas/uaccess.c | |||
@@ -69,7 +69,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write, | |||
69 | return -1; | 69 | return -1; |
70 | 70 | ||
71 | page = pte_page(*pte); | 71 | page = pte_page(*pte); |
72 | addr = (unsigned long) kmap_atomic(page, KM_UML_USERCOPY) + | 72 | addr = (unsigned long) kmap_atomic(page) + |
73 | (addr & ~PAGE_MASK); | 73 | (addr & ~PAGE_MASK); |
74 | 74 | ||
75 | current->thread.fault_catcher = &buf; | 75 | current->thread.fault_catcher = &buf; |
@@ -82,7 +82,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write, | |||
82 | 82 | ||
83 | current->thread.fault_catcher = NULL; | 83 | current->thread.fault_catcher = NULL; |
84 | 84 | ||
85 | kunmap_atomic((void *)addr, KM_UML_USERCOPY); | 85 | kunmap_atomic((void *)addr); |
86 | 86 | ||
87 | return n; | 87 | return n; |
88 | } | 88 | } |