coreboot-kgpe-d16/payloads/libpayload/libcbfs
Yu-Ping Wu 3596a5ee67 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>
2023-08-18 14:15:19 +00:00
..
Kconfig
Makefile.inc
cbfs.c libpayload/cbfs: Fill size_out even if cbfs_map() fails 2023-08-18 14:15:19 +00:00
cbfs_core.c libpayload: Fix legacy CBFS code after recent refactoring 2022-01-14 00:41:13 +00:00
cbfs_legacy.c libpayload: Fix legacy CBFS code after recent refactoring 2022-01-14 00:41:13 +00:00
ram_media.c