From 45ff071d6ea0271622831a26ca3d3acbe60fb305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Date: Mon, 4 Sep 2017 10:08:42 +0000 Subject: [PATCH] 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 --- sys/x86/acpica/srat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c index 1093ba25ac59..612c8eb23607 100644 --- a/sys/x86/acpica/srat.c +++ b/sys/x86/acpica/srat.c @@ -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