]> git.baikalelectronics.ru Git - uboot.git/commit
common: spl: ram: fix return code
authorNikita Shubin <n.shubin@yadro.com>
Mon, 12 Dec 2022 08:03:35 +0000 (11:03 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jan 2023 16:25:46 +0000 (11:25 -0500)
commitafb1063e9a42e9ab329213e27f5716e840b4e617
tree0e4b18bb2e0f1a0eb7eec7f10c38255c045e94b7
parent895327a99a704ffb04725b587f34efe1d71b0cd5
common: spl: ram: fix return code

Instead of always retuning success, return actual result of
load_simple_fit_image or spl_parse_image_header, otherwise we
might end up jumping on uninitialized spl_image->entry_point.

Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Stefan Roese <sr@denx.de>
common/spl/spl_ram.c