]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/image-fit.c
Reverse the meaning of the fit_config_verify() return code
[karo-tx-uboot.git] / common / image-fit.c
index 732505a36c165436b0751890378d3d76e6b479e9..40c7e27c6e6da81495165601f5d7d0a57266e5aa 100644 (file)
@@ -1534,7 +1534,7 @@ int fit_image_load(bootm_headers_t *images, const char *prop_name, ulong addr,
                        images->fit_uname_cfg = fit_uname_config;
                        if (IMAGE_ENABLE_VERIFY && images->verify) {
                                puts("   Verifying Hash Integrity ... ");
-                               if (!fit_config_verify(fit, cfg_noffset)) {
+                               if (fit_config_verify(fit, cfg_noffset)) {
                                        puts("Bad Data Hash\n");
                                        bootstage_error(bootstage_id +
                                                BOOTSTAGE_SUB_HASH);