alpha: Fix uninitialized value in read_persistent_clock.
authorRichard Henderson <rth@twiddle.net>
Sun, 17 Apr 2011 20:05:26 +0000 (13:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Apr 2011 21:41:30 +0000 (14:41 -0700)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/time.c

index a58e84f1a63b76cc3e96856d10736a1c03ba6872..918e8e0b72ff1e3220845ea410277a83ff326517 100644 (file)
@@ -153,6 +153,7 @@ void read_persistent_clock(struct timespec *ts)
                year += 100;
 
        ts->tv_sec = mktime(year, mon, day, hour, min, sec);
+       ts->tv_nsec = 0;
 }