svn commit: r326121 - head/sys/dev/efidev
Andrew Turner
andrew at FreeBSD.org
Thu Nov 23 10:34:39 UTC 2017
Author: andrew
Date: Thu Nov 23 10:34:38 2017
New Revision: 326121
URL: https://svnweb.freebsd.org/changeset/base/326121
Log:
Zero struct efi_tm before setting the needed values. We don't use the dst
or timezone fields so ensure these are set.
Reported by: emaste
Sponsored by: DARPA, AFRL
Modified:
head/sys/dev/efidev/efirtc.c
Modified: head/sys/dev/efidev/efirtc.c
==============================================================================
--- head/sys/dev/efidev/efirtc.c Thu Nov 23 10:09:49 2017 (r326120)
+++ head/sys/dev/efidev/efirtc.c Thu Nov 23 10:34:38 2017 (r326121)
@@ -116,6 +116,7 @@ efirtc_settime(device_t dev, struct timespec *ts)
clock_ts_to_ct(ts, &ct);
+ bzero(&tm, sizeof(tm));
tm.tm_sec = ct.sec;
tm.tm_min = ct.min;
tm.tm_hour = ct.hour;
More information about the svn-src-all
mailing list