diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2023-08-16 09:54:24 +0800 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-08-18 14:15:19 +0000 |
commit | 3596a5ee67b1d3e37aadbcd003d6970998985cce (patch) | |
tree | 82a7d5f20f60a016b21e0be91228a720d7730206 /src/mainboard/gigabyte/ga-945gcm-s2l | |
parent | ba7ab73900dc6c163e0b36a3e8a435978276d733 (diff) |
libpayload/cbfs: Fill size_out even if cbfs_map() fails
When cbfs_map()/cbfs_ro_map() fails, the caller may still want to know
the decompressed size of the CBFS file, for example, to print an error
message. Move the assignment earlier in the flow. Note that coreboot's
cbfs_map() is already doing the same.
BUG=none
TEST=emerge-geralt libpayload
BRANCH=none
Change-Id: I82c6b7e69c95bf597fa3c7d37dd11252893c01af
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77193
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/gigabyte/ga-945gcm-s2l')
0 files changed, 0 insertions, 0 deletions