projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] hrtimer: validate timespec of do_sys_settimeofday
[deliverable/linux.git]
/
kernel
/
time.c
diff --git
a/kernel/time.c
b/kernel/time.c
index bbc8ca194b59ee3687a1ec4ced54a94e4cadbbde..c689b53297cfb0dc3c1b36d04240cebad8766d87 100644
(file)
--- a/
kernel/time.c
+++ b/
kernel/time.c
@@
-154,6
+154,9
@@
int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
static int firsttime = 1;
int error = 0;
+ if (!timespec_valid(tv))
+ return -EINVAL;
+
error = security_settime(tv, tz);
if (error)
return error;
This page took
0.025546 seconds
and
5
git commands to generate.