You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Don't try to "validate" a non-existing timeval.
settime() with a NULL timeval is silly but legal. Noticed by Dave Jones <davej@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
|
||||
static int firsttime = 1;
|
||||
int error = 0;
|
||||
|
||||
if (!timespec_valid(tv))
|
||||
if (tv && !timespec_valid(tv))
|
||||
return -EINVAL;
|
||||
|
||||
error = security_settime(tv, tz);
|
||||
|
||||
Reference in New Issue
Block a user