SPL: Let spl_parse_image_header() return value
Allow the spl_parse_image_header() to return value. This is convenient for controlling the SPL boot flow if the loaded image is corrupted. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com>
This commit is contained in:
committed by
Stefano Babic
parent
249092fa81
commit
7e0f22674a
@@ -57,7 +57,9 @@ int spl_load_image_fat(struct blk_desc *block_dev,
|
||||
if (err <= 0)
|
||||
goto end;
|
||||
|
||||
spl_parse_image_header(header);
|
||||
err = spl_parse_image_header(header);
|
||||
if (err <= 0)
|
||||
goto end;
|
||||
|
||||
err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user