aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 10:14:27 -0500
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 09:48:21 -0400
commite8e3c3d66fd9d1ee2250f68d778cc48c1346d228 (patch)
tree2d69e1bb0cefe36bbfc4b75ddfa6cec8e72bcb98 /fs/exec.c
parentc6daa7ffa834c850b3dbb38af6980415caef680d (diff)
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.c4
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)
1339 ret = -EFAULT; 1339 ret = -EFAULT;
1340 goto out; 1340 goto out;
1341 } 1341 }
1342 kaddr = kmap_atomic(page, KM_USER0); 1342 kaddr = kmap_atomic(page);
1343 1343
1344 for (; offset < PAGE_SIZE && kaddr[offset]; 1344 for (; offset < PAGE_SIZE && kaddr[offset];
1345 offset++, bprm->p++) 1345 offset++, bprm->p++)
1346 ; 1346 ;
1347 1347
1348 kunmap_atomic(kaddr, KM_USER0); 1348 kunmap_atomic(kaddr);
1349 put_arg_page(page); 1349 put_arg_page(page);
1350 1350
1351 if (offset == PAGE_SIZE) 1351 if (offset == PAGE_SIZE)