diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 16:14:27 +0100 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 14:48:21 +0100 |
commit | e8e3c3d66fd9d1ee2250f68d778cc48c1346d228 (patch) | |
tree | 2d69e1bb0cefe36bbfc4b75ddfa6cec8e72bcb98 /fs/exec.c | |
parent | vhost: remove the second argument of k[un]map_atomic() (diff) | |
download | linux-e8e3c3d66fd9d1ee2250f68d778cc48c1346d228.tar.xz linux-e8e3c3d66fd9d1ee2250f68d778cc48c1346d228.zip |
fs: remove the second argument of k[un]map_atomic()
Acked-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c index 153dee14fe55..1a07d1c2d78e 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1339,13 +1339,13 @@ int remove_arg_zero(struct linux_binprm *bprm) ret = -EFAULT; goto out; } - kaddr = kmap_atomic(page, KM_USER0); + kaddr = kmap_atomic(page); for (; offset < PAGE_SIZE && kaddr[offset]; offset++, bprm->p++) ; - kunmap_atomic(kaddr, KM_USER0); + kunmap_atomic(kaddr); put_arg_page(page); if (offset == PAGE_SIZE) |