mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 23:21:58 +00:00
imx: hab: Use size parameter
The current code works by sheer coincidence, because (see HABv4 API documentation, section 3.4) the RVT authenticate_image call updates the size that is passed in with the actual size ROM code pulls from IVT/CSF . So if the input size is larger, that is "fine" . Pass in size instead to make this really correct. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
cc7df0b9e8
commit
b0296e22cb
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ void *spl_load_simple_fit_fix_load(const void *fit)
|
|||
debug("%s: ivt: %p offset: %lx size: %lx\n", __func__, ivt, offset, size);
|
||||
debug("%s: ivt self: %x\n", __func__, ivt->self);
|
||||
|
||||
if (imx_hab_authenticate_image((uintptr_t)fit, (uintptr_t)ivt, offset))
|
||||
if (imx_hab_authenticate_image((uintptr_t)fit, (uintptr_t)size, offset))
|
||||
panic("spl: ERROR: image authentication unsuccessful\n");
|
||||
|
||||
return (void *)fit;
|
||||
|
|
Loading…
Reference in a new issue