From 0ed5c2ad9ea24d01cc3ee6523a73f4bcc959b13c Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 19 Sep 2017 13:49:07 +0200 Subject: bootm: bootm_open_initrd_uimage(): propagate error if initrd verification fails If the verification of an initrd inside of an uImage fails an error message is printed but the error is not propagated. Although this is not security relevant, as the verification is currently only a CRC32 check, the error should be returned. This patch fixes the problem. Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer --- common/bootm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/bootm.c') diff --git a/common/bootm.c b/common/bootm.c index 81625d9157..eebaa799f5 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -173,6 +173,7 @@ static int bootm_open_initrd_uimage(struct image_data *data) if (ret) { printf("Checking data crc failed with %s\n", strerror(-ret)); + return ret; } } uimage_print_contents(data->initrd); -- cgit v1.2.3