mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-19 14:31:48 +01:00
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:
parent
39a3a4386a
commit
45ff071d6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323154
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user