diff options
author | Julius Werner <jwerner@chromium.org> | 2020-12-03 12:25:11 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-12-03 21:21:11 +0000 |
commit | 20f5dcec63ade1108e8ebaa6a34665aa9273db99 (patch) | |
tree | 347f30026aa92c1cda109a512236d4914ae86719 /util/genbuild_h | |
parent | fdabf3fcd792e5939445233c74eb8bf3bb73de39 (diff) |
cbfs: mcache: Fix end-of-cache check
After the mcache is copied into CBMEM, it has *just* the right size to
fit the final tag with no room to spare. That means the test to check if
we walked over the end must be `current + sizeof(tag) <= end`, not
`current + sizeof(tag) < end`.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I25a0d774fb3294bb4d15f31f432940bfccc84af0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48277
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util/genbuild_h')
0 files changed, 0 insertions, 0 deletions