Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126284
b: refs/heads/master
c: e3d5a27
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras authored and Linus Torvalds committed Jan 6, 2009
1 parent 9306758 commit a647d54
Show file tree
Hide file tree
Showing 4 changed files with 10 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: af9379c7121d5543722c00bbd1adf7dcaa0b6448
refs/heads/master: e3d5a27d5862b6425d0879272e24abecf7245105
5 changes: 4 additions & 1 deletion trunk/kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/migrate.h>
#include <linux/posix-timers.h>
#include <linux/times.h>
#include <linux/ptrace.h>

#include <asm/uaccess.h>

Expand Down Expand Up @@ -229,6 +230,7 @@ asmlinkage long compat_sys_times(struct compat_tms __user *tbuf)
if (copy_to_user(tbuf, &tmp, sizeof(tmp)))
return -EFAULT;
}
force_successful_syscall_return();
return compat_jiffies_to_clock_t(jiffies);
}

Expand Down Expand Up @@ -894,8 +896,9 @@ asmlinkage long compat_sys_time(compat_time_t __user * tloc)

if (tloc) {
if (put_user(i,tloc))
i = -EFAULT;
return -EFAULT;
}
force_successful_syscall_return();
return i;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/task_io_accounting_ops.h>
#include <linux/seccomp.h>
#include <linux/cpu.h>
#include <linux/ptrace.h>

#include <linux/compat.h>
#include <linux/syscalls.h>
Expand Down Expand Up @@ -927,6 +928,7 @@ asmlinkage long sys_times(struct tms __user * tbuf)
if (copy_to_user(tbuf, &tmp, sizeof(struct tms)))
return -EFAULT;
}
force_successful_syscall_return();
return (long) jiffies_64_to_clock_t(get_jiffies_64());
}

Expand Down
4 changes: 3 additions & 1 deletion trunk/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/math64.h>
#include <linux/ptrace.h>

#include <asm/uaccess.h>
#include <asm/unistd.h>
Expand Down Expand Up @@ -65,8 +66,9 @@ asmlinkage long sys_time(time_t __user * tloc)

if (tloc) {
if (put_user(i,tloc))
i = -EFAULT;
return -EFAULT;
}
force_successful_syscall_return();
return i;
}

Expand Down

0 comments on commit a647d54

Please sign in to comment.