Skip to content

Commit a78eda5

Browse files
rth7680torvalds
authored andcommitted
alpha: Fix uninitialized value in read_persistent_clock.
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6181318 commit a78eda5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/alpha/kernel/time.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ void read_persistent_clock(struct timespec *ts)
153153
year += 100;
154154

155155
ts->tv_sec = mktime(year, mon, day, hour, min, sec);
156+
ts->tv_nsec = 0;
156157
}
157158

158159

0 commit comments

Comments
 (0)