Author: royger
Date: Mon Sep  4 10:08:42 2017
New Revision: 323154
URL: https://svnweb.freebsd.org/changeset/base/323154

Log:
  acpi/srat: zero the SRAT cpu array
  
  Fix from fallout introduced in r322348 that moved the cpus array to a
  dynamic allocation without zeroing the area.
  
  Reported by:          mjg
  MFC with:             r322348
  Reviewed by:          mjg
  Differential revision:        https://reviews.freebsd.org/D12220

Modified:
  head/sys/x86/acpica/srat.c

Modified: head/sys/x86/acpica/srat.c
==============================================================================
--- head/sys/x86/acpica/srat.c  Mon Sep  4 08:41:51 2017        (r323153)
+++ head/sys/x86/acpica/srat.c  Mon Sep  4 10:08:42 2017        (r323154)
@@ -449,6 +449,7 @@ parse_srat(void)
         * the default memory attribute (WB), and the DMAP when available.
         */
        cpus = (struct cpu_info *)pmap_mapbios(addr, size);
+       bzero(cpus, size);
 
        /*
         * Make a pass over the table to populate the cpus[] and
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to