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 a58e84f..918e8e0 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;
 }