Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348922
b: refs/heads/master
c: a566c28
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Dec 26, 2012
1 parent 38ea4ff commit c039c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 8d9807b109497ca41d363dc7b6ff2bb6c0d52524
refs/heads/master: a566c288826ad4502e43b59570214f18173d7744
6 changes: 5 additions & 1 deletion trunk/kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,11 @@ COMPAT_SYSCALL_DEFINE5(waitid,
return ret;

if (uru) {
ret = put_compat_rusage(&ru, uru);
/* sys_waitid() overwrites everything in ru */
if (COMPAT_USE_64BIT_TIME)
ret = copy_to_user(uru, &ru, sizeof(ru));
else
ret = put_compat_rusage(&ru, uru);
if (ret)
return ret;
}
Expand Down

0 comments on commit c039c83

Please sign in to comment.