summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 16:14:17 +0100
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 14:48:15 +0100
commit8fd75e1216e0ba601a746177e6c102d5593b572f (patch)
treed9f8e867ccec9ecaa2b77616a01c1c3d0875d76e /arch/x86/lib
parentum: remove the second argument of k[un]map_atomic() (diff)
downloadlinux-8fd75e1216e0ba601a746177e6c102d5593b572f.tar.xz
linux-8fd75e1216e0ba601a746177e6c102d5593b572f.zip
x86: remove the second argument of k[un]map_atomic()
Acked-by: Avi Kivity <avi@redhat.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/usercopy_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/usercopy_32.c b/arch/x86/lib/usercopy_32.c
index e218d5df85ff..d9b094ca7aaa 100644
--- a/arch/x86/lib/usercopy_32.c
+++ b/arch/x86/lib/usercopy_32.c
@@ -760,9 +760,9 @@ survive:
break;
}
- maddr = kmap_atomic(pg, KM_USER0);
+ maddr = kmap_atomic(pg);
memcpy(maddr + offset, from, len);
- kunmap_atomic(maddr, KM_USER0);
+ kunmap_atomic(maddr);
set_page_dirty_lock(pg);
put_page(pg);
up_read(&current->mm->mmap_sem);