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
This commit is contained in:
Roger Pau Monné 2017-09-04 10:08:42 +00:00
parent 39a3a4386a
commit 45ff071d6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323154

View File

@ -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