Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2017 10:08:42 +0000 (UTC)
From:      =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323154 - head/sys/x86/acpica
Message-ID:  <201709041008.v84A8gGt004409@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709041008.v84A8gGt004409>