aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/armv7
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2024-05-23 11:27:09 +0200
committerTom Rini <trini@konsulko.com>2024-06-07 16:20:28 -0600
commit3078766134ae6d9c8746300b084a293105e35f60 (patch)
tree42238ac1173a306f2fa9c4f72b6071f7d2bcda92 /arch/arm/mach-at91/armv7
parent6068abe33fff28ba50a0f68eabc5d9eb31b7045d (diff)
downloadu-boot-3078766134ae6d9c8746300b084a293105e35f60.tar.gz
image: Set load_end on partial loads
When decompressing, it's possible that the algorithm only performs a partial decompression. This usually happens when CONFIG_SYS_BOOTM_LEN is too small for the uncompressed image. When that happens, image_decomp() returns an error and *load_end == load. The error is then handled by handle_decomp_error(). handle_decomp_error() expects the number of uncompressed bytes in uncomp_size but receives *load_end - load == load - load == 0. Because of this, handle_decomp_error does not report the expected "Image too large: increase CONFIG_SYS_BOOTM_LEN" error message. Modify the image_decomp() logic to always report the decompressed size, even when a partial decompression happened. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'arch/arm/mach-at91/armv7')
0 files changed, 0 insertions, 0 deletions