diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1342,13 +1342,13 @@ int remove_arg_zero(struct linux_binprm *bprm) | |||
1342 | ret = -EFAULT; | 1342 | ret = -EFAULT; |
1343 | goto out; | 1343 | goto out; |
1344 | } | 1344 | } |
1345 | kaddr = kmap_atomic(page, KM_USER0); | 1345 | kaddr = kmap_atomic(page); |
1346 | 1346 | ||
1347 | for (; offset < PAGE_SIZE && kaddr[offset]; | 1347 | for (; offset < PAGE_SIZE && kaddr[offset]; |
1348 | offset++, bprm->p++) | 1348 | offset++, bprm->p++) |
1349 | ; | 1349 | ; |
1350 | 1350 | ||
1351 | kunmap_atomic(kaddr, KM_USER0); | 1351 | kunmap_atomic(kaddr); |
1352 | put_arg_page(page); | 1352 | put_arg_page(page); |
1353 | 1353 | ||
1354 | if (offset == PAGE_SIZE) | 1354 | if (offset == PAGE_SIZE) |