diff options
author | Marc Jones <marcj303@gmail.com> | 2018-01-17 11:33:56 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-01-19 18:35:16 +0000 |
commit | 9826d1b272a47d2a2c83eecafe399b96f882b4a5 (patch) | |
tree | 8092617a4d43e4d29b86df6fbaade46952d5a22d /src/drivers/mrc_cache/Kconfig | |
parent | 2ca4ca3f2192f067680ad9f3d99917658de74045 (diff) |
drivers/amd/agesa: Fix AGESA heap deallocator
Ported from commit e6033ce1
soc/amd/common/block/pi: Fix AGESA heap deallocator
The deallocation was always subtracting the header, even when it
shouldn't. This caused problems for the allocator where buffer
sizes were incorrect and freed and used buffers could collide.
Fix the deallocation size.
Clear deallocated concatinated buffer header memory.
Fix the initial calculation of the total buffer size
available to be allocated.
Original-Change-Id: I2789ddf72d662f24709dc5d9873741169cc4ef36
Change-Id: Ibac916fcd964adca97a72617428e3d53012e13a1
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/23309
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/mrc_cache/Kconfig')
0 files changed, 0 insertions, 0 deletions