summaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorHarald Koerfgen <hkoerfg@web.de>1999-07-04 12:10:04 +0000
committerHarald Koerfgen <hkoerfg@web.de>1999-07-04 12:10:04 +0000
commit40c138bfc6d37dbff5339f84575db1e3cec6e34e (patch)
tree366b4fb49f818da5c0f10a13310a896f9c4997af /kernel/sys.c
parent668f401a1783809835b2d75d3c76260c597a540b (diff)
Typo corrected
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 4752c9ce6..dca8acdd6 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -613,13 +613,14 @@ asmlinkage long sys_times(struct tms * tbuf)
* atomically safe type this is just fine. Conceptually its
* as if the syscall took an instant longer to occur.
*/
- if (tbuf)
+ if (tbuf) {
temp.tms_utime = HZ_TO_STD(current->times.tms_utime);
temp.tms_stime = HZ_TO_STD(current->times.tms_stime);
temp.tms_cutime = HZ_TO_STD(current->times.tms_cutime);
temp.tms_cstime = HZ_TO_STD(current->times.tms_cstime);
if (copy_to_user(tbuf, &temp, sizeof(struct tms)))
return -EFAULT;
+ }
return HZ_TO_STD(jiffies);
}