Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35949
b: refs/heads/master
c: 7583334
h: refs/heads/master
i:
  35947: 0d62eea
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent b2e031e commit e30d2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 95912008ba1fb9d0677c1ce5930aeb0e85ba5710
refs/heads/master: 758333458aa719bfc26ec16eafd4ad3a9e96014d
5 changes: 3 additions & 2 deletions trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ asmlinkage long compat_sys_pselect7(int n, compat_ulong_t __user *inp,

} while (!ret && !timeout && tsp && (ts.tv_sec || ts.tv_nsec));

if (tsp && !(current->personality & STICKY_TIMEOUTS)) {
if (ret == 0 && tsp && !(current->personality & STICKY_TIMEOUTS)) {
struct compat_timespec rts;

rts.tv_sec = timeout / HZ;
Expand All @@ -1866,7 +1866,8 @@ asmlinkage long compat_sys_pselect7(int n, compat_ulong_t __user *inp,
}
if (compat_timespec_compare(&rts, &ts) >= 0)
rts = ts;
copy_to_user(tsp, &rts, sizeof(rts));
if (copy_to_user(tsp, &rts, sizeof(rts)))
ret = -EFAULT;
}

if (ret == -ERESTARTNOHAND) {
Expand Down

0 comments on commit e30d2de

Please sign in to comment.