]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/boot_fit.c
imx: hab: Check if CSF is valid before authenticating image
[people/ms/u-boot.git] / common / boot_fit.c
index ce4293184ae69b44a14f9d9116f0fd8694daf2b5..add65c4baed7431be4c605e9189ef748eabccdca 100644 (file)
@@ -73,7 +73,7 @@ void *locate_dtb_in_fit(const void *fit)
 
        ret = fdt_offset(fit);
 
-       if (ret <= 0)
+       if (ret < 0)
                return NULL;
        else
                return (void *)fit+size+ret;