aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 1b63237fc6dc..6f2d777431a8 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -419,6 +419,8 @@ static int copy_strings(int argc, const char __user *const __user *argv,
419 while (len > 0) { 419 while (len > 0) {
420 int offset, bytes_to_copy; 420 int offset, bytes_to_copy;
421 421
422 cond_resched();
423
422 offset = pos % PAGE_SIZE; 424 offset = pos % PAGE_SIZE;
423 if (offset == 0) 425 if (offset == 0)
424 offset = PAGE_SIZE; 426 offset = PAGE_SIZE;