arm: bootm: don't fall over if image is padded with less than 40 bytes
If the zImage has a padding, which is less than 40 bytes
(sizeof struct fdt_header) the amount of read bytes would be propagated
as an error code. Fix this by only propagating real errors and treating
failure to read less than the expected amount as no concatenated DT
being present.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a10a8e5 commit ed5d71ab06bf45e585f9d03049f4730109979aff
@Lucas Stach Lucas Stach authored on 20 Oct 2017
Sascha Hauer committed on 23 Oct 2017
Showing 1 changed file
View
arch/arm/lib/bootm.c