projects/linux·commit a78eda5c

alpha: Fix uninitialized value in read_persistent_clock.

a78eda5c · Richard Henderson <[email protected]> · 2011-04-17 13:05:26 -07:00

Signed-off-by: Richard Henderson <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
a78eda5cd3055852231ad10cfd047e65cb44dfde
Parents
61813188

Changes

1 files changed · +1 −0

FileStatusAddDelContent
arch/alpha/kernel/time.cmodified+1−0View file

arch/alpha/kernel/time.c

View file
diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c
index a58e84f..918e8e0 100644
--- a/arch/alpha/kernel/time.c
+++ b/arch/alpha/kernel/time.c
@@ -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;
}