aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/exit.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 2cc69eb8db2a..6c75ff83a8fe 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1140,18 +1140,20 @@ static int wait_noreap_copyout(struct wait_opts *wo, struct task_struct *p,
1140 1140
1141 put_task_struct(p); 1141 put_task_struct(p);
1142 infop = wo->wo_info; 1142 infop = wo->wo_info;
1143 if (!retval) 1143 if (infop) {
1144 retval = put_user(SIGCHLD, &infop->si_signo); 1144 if (!retval)
1145 if (!retval) 1145 retval = put_user(SIGCHLD, &infop->si_signo);
1146 retval = put_user(0, &infop->si_errno); 1146 if (!retval)
1147 if (!retval) 1147 retval = put_user(0, &infop->si_errno);
1148 retval = put_user((short)why, &infop->si_code); 1148 if (!retval)
1149 if (!retval) 1149 retval = put_user((short)why, &infop->si_code);
1150 retval = put_user(pid, &infop->si_pid); 1150 if (!retval)
1151 if (!retval) 1151 retval = put_user(pid, &infop->si_pid);
1152 retval = put_user(uid, &infop->si_uid); 1152 if (!retval)
1153 if (!retval) 1153 retval = put_user(uid, &infop->si_uid);
1154 retval = put_user(status, &infop->si_status); 1154 if (!retval)
1155 retval = put_user(status, &infop->si_status);
1156 }
1155 if (!retval) 1157 if (!retval)
1156 retval = pid; 1158 retval = pid;
1157 return retval; 1159 return retval;