[PATCH] common: spl: spl_fit.c: report an error on hash check fail

Simon Glass sjg at chromium.org
Mon Nov 30 21:12:34 CET 2020


On Tue, 24 Nov 2020 at 08:15, Philippe Reynes
<philippe.reynes at softathome.com> wrote:
>
> When the hash check fails on a loadable image, the SPL/TPL simply
> jump to the next one. This commit changes this behaviour, when the
> hash check fails on a loadable image, the function spl_load_simple_fit
> stops and report an error.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
>  common/spl/spl_fit.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

This should have a test. We have sandbox SPL test support now so it
should not be too hard.


More information about the U-Boot mailing list