diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -388,7 +388,7 @@ static int count(char __user * __user * argv, int max) | |||
388 | if (!p) | 388 | if (!p) |
389 | break; | 389 | break; |
390 | argv++; | 390 | argv++; |
391 | if(++i > max) | 391 | if (i++ >= max) |
392 | return -E2BIG; | 392 | return -E2BIG; |
393 | cond_resched(); | 393 | cond_resched(); |
394 | } | 394 | } |
@@ -822,8 +822,6 @@ static int de_thread(struct task_struct *tsk) | |||
822 | schedule(); | 822 | schedule(); |
823 | } | 823 | } |
824 | 824 | ||
825 | if (unlikely(task_child_reaper(tsk) == leader)) | ||
826 | task_active_pid_ns(tsk)->child_reaper = tsk; | ||
827 | /* | 825 | /* |
828 | * The only record we have of the real-time age of a | 826 | * The only record we have of the real-time age of a |
829 | * process, regardless of execs it's done, is start_time. | 827 | * process, regardless of execs it's done, is start_time. |
@@ -1186,7 +1184,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs) | |||
1186 | return retval; | 1184 | return retval; |
1187 | 1185 | ||
1188 | /* Remember if the application is TASO. */ | 1186 | /* Remember if the application is TASO. */ |
1189 | bprm->sh_bang = eh->ah.entry < 0x100000000UL; | 1187 | bprm->taso = eh->ah.entry < 0x100000000UL; |
1190 | 1188 | ||
1191 | bprm->file = file; | 1189 | bprm->file = file; |
1192 | bprm->loader = loader; | 1190 | bprm->loader = loader; |