]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/mach-imx/hab.c
imx: hab: Ensure the IVT DCD pointer is Null prior to calling HAB authenticate function.
[people/ms/u-boot.git] / arch / arm / mach-imx / hab.c
index 1e6b31da7a0d773c5fbfe8405c1e44cb7241068c..ba6b31d49070a3eb19416a68c7712d95529e5f81 100644 (file)
@@ -516,6 +516,12 @@ int imx_hab_authenticate_image(uint32_t ddr_start, uint32_t image_size,
                goto hab_authentication_exit;
        }
 
+       /* Verify if IVT DCD pointer is NULL */
+       if (ivt->dcd) {
+               puts("Error: DCD pointer must be NULL\n");
+               goto hab_authentication_exit;
+       }
+
        start = ddr_start;
        bytes = image_size;