diff options
author | Jan Dabros <jsd@semihalf.com> | 2020-08-21 08:24:41 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-08-26 07:33:05 +0000 |
commit | 086c5e6fc866e99208da3c1c9c8840cd0aeaec80 (patch) | |
tree | 652ef5ad8dc0e3c43c57e28996afde03a9a1ea92 /util/testing | |
parent | 93d56f51653b0310d81d63c5ee0c9e5c252e9cbe (diff) |
lib/imd: Fix imdr_recover for small regions
One of the checks inside imdr_recover() was written with the
assumption that imdr limit is always aligned to LIMIT_ALIGN. This is
true only for large allocations, thus may fail for small regions.
It's not necessary to check if root_pointer is under the limit, since
this is implicitly verified by imdr_get_root_pointer().
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I25d6291301797d10c6a267b5f6e56ac38b995b7b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44667
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'util/testing')
0 files changed, 0 insertions, 0 deletions