[PATCH] common: bootm: Add missing check of fit_open_image() return code
Sascha Hauer
s.hauer at pengutronix.de
Mon Sep 14 04:32:39 EDT 2020
On Wed, Sep 09, 2020 at 12:54:46PM +0200, Albert Schwarzkopf wrote:
> Check the return code of fit_open_image() inside bootm_load_initrd().
> Without this check, the code works with undefined values of
> "initrd_size" and "initrd" should fit_open_image() fail.
>
> Signed-off-by: Albert Schwarzkopf <a.schwarzkopf at phytec.de>
> ---
> common/bootm.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list