]> git.dujemihanovic.xyz Git - u-boot.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)
commitcf7aa035433a73969a8e7b8e3261410bdeb0a214
tree0e4b18bb2e0f1a0eb7eec7f10c38255c045e94b7
parentc40e021b83d9db9aec736a0cb992fd84d2e63c02
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