diff options
author | Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> | 2025-06-10 12:56:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-19 11:01:51 -0600 |
commit | 3eb43c54fadba457f22e415a2821145164efe662 (patch) | |
tree | 055bfb39d45abe615e9c7bccbac22b026f3c2f8e /drivers/fpga/ivm_core.c | |
parent | 3704b888a4cabac8daea20a4504d513bc47153ca (diff) |
common/spl: handle properly images with bad checksum
load_simple_fit() returns -EPERM for the images with broken signatures.
Unfortunately this may conflict with image loaging selection on the base
of boot phase. See commit 873112db9ce68c38984ff25808dde726f8dd5573
("spl: Support selecting images based on phase in simple FIT").
Thus loading of
configurations {
uboot {
description = "u-boot";
firmware = "atf";
loadables = "atf", "tee", "uboot";
};
};
with damaged "tee" image may finish without errors. This may results in
board bricking.
This patch fixes commit 873112db9ce68c38984ff25808dde726f8dd5573
("spl: Support selecting images based on phase in simple FIT")
by replacing EPERM with EBADSLT places where it should be done.
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Diffstat (limited to 'drivers/fpga/ivm_core.c')
0 files changed, 0 insertions, 0 deletions