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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to