]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(nxp-tools): fix coverity issue
authorJiafei Pan <Jiafei.Pan@nxp.com>
Fri, 2 Sep 2022 03:59:52 +0000 (11:59 +0800)
committerJiafei Pan <Jiafei.Pan@nxp.com>
Tue, 6 Dec 2022 14:45:36 +0000 (22:45 +0800)
Check the value is not NULL.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: If753e9875153a8e31498addf89202c953abf64ef

tools/nxp/create_pbl/create_pbl.c

index 9457a00b12f52c7ee7dd521efa183882ec5a4ecb..792747f0e5cba814e6785e0b5d4c2546ff5f2f13 100644 (file)
@@ -823,7 +823,9 @@ int main(int argc, char **argv)
                }
        }
 
-       if ((args & MAND_ARG_MASK) != MAND_ARG_MASK) {
+       if ((args & MAND_ARG_MASK) != MAND_ARG_MASK
+                       || pblimg.rcw_nm == NULL
+                       || pblimg.imagefile == NULL) {
                print_usage();
        }