summaryrefslogtreecommitdiffstats
path: root/payloads/external
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2023-08-16 09:54:24 +0800
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-08-18 14:15:19 +0000
commit3596a5ee67b1d3e37aadbcd003d6970998985cce (patch)
tree82a7d5f20f60a016b21e0be91228a720d7730206 /payloads/external
parentba7ab73900dc6c163e0b36a3e8a435978276d733 (diff)
downloadcoreboot-3596a5ee67b1d3e37aadbcd003d6970998985cce.tar.gz
coreboot-3596a5ee67b1d3e37aadbcd003d6970998985cce.tar.bz2
coreboot-3596a5ee67b1d3e37aadbcd003d6970998985cce.zip
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 'payloads/external')
0 files changed, 0 insertions, 0 deletions