Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377465
b: refs/heads/master
c: 706b23b
h: refs/heads/master
i:
  377463: d7a786b
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Linus Torvalds committed Jun 29, 2013
1 parent f13412e commit ca3a991
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd2931b5cff6a3bf39bfe15fae051fb8229c0029
refs/heads/master: 706b23bde27a391f0974df2a8351661770fa2e07
20 changes: 11 additions & 9 deletions trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,20 +665,22 @@ static int ptrace_peek_siginfo(struct task_struct *child,
if (unlikely(is_compat_task())) {
compat_siginfo_t __user *uinfo = compat_ptr(data);

ret = copy_siginfo_to_user32(uinfo, &info);
ret |= __put_user(info.si_code, &uinfo->si_code);
if (copy_siginfo_to_user32(uinfo, &info) ||
__put_user(info.si_code, &uinfo->si_code)) {
ret = -EFAULT;
break;
}

} else
#endif
{
siginfo_t __user *uinfo = (siginfo_t __user *) data;

ret = copy_siginfo_to_user(uinfo, &info);
ret |= __put_user(info.si_code, &uinfo->si_code);
}

if (ret) {
ret = -EFAULT;
break;
if (copy_siginfo_to_user(uinfo, &info) ||
__put_user(info.si_code, &uinfo->si_code)) {
ret = -EFAULT;
break;
}
}

data += sizeof(siginfo_t);
Expand Down

0 comments on commit ca3a991

Please sign in to comment.