[PATCH] fit: display proper node on error

Angelo Dureghello angelo.dureghello at timesys.com
Wed Oct 6 17:47:17 CEST 2021


Fix final error message from

Verification failed for '<NULL>' hash node in 'conf at 1' config node

to

Verification failed for 'signature at 1' hash node in 'conf at 1' config node

Signed-off-by: Angelo Dureghello <angelo.dureghello at timesys.com>
---
 common/image-fit-sig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c
index b979cd2a4b..4f2a6ef214 100644
--- a/common/image-fit-sig.c
+++ b/common/image-fit-sig.c
@@ -166,8 +166,8 @@ static int fit_image_verify_sig(const void *fit, int image_noffset,
 			} else {
 				puts("+ ");
 				verified = 1;
-				break;
 			}
+			break;
 		}
 	}
 
-- 
2.32.0



More information about the U-Boot mailing list