diff options
author | Jiafei Pan <Jiafei.Pan@nxp.com> | 2022-09-02 11:59:52 +0800 |
---|---|---|
committer | Jiafei Pan <Jiafei.Pan@nxp.com> | 2022-12-06 22:45:36 +0800 |
commit | 4fa0f097399c7d396bc14a6692476ada6981c458 (patch) | |
tree | c7ff97f03c9769302e7892a08d45a6473ac93ec9 | |
parent | 2d541cbcbe90217df107e1ac0c4adb76d647b283 (diff) | |
download | arm-trusted-firmware-4fa0f097399c7d396bc14a6692476ada6981c458.tar.gz |
fix(nxp-tools): fix coverity issue
Check the value is not NULL.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: If753e9875153a8e31498addf89202c953abf64ef
-rw-r--r-- | tools/nxp/create_pbl/create_pbl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/nxp/create_pbl/create_pbl.c b/tools/nxp/create_pbl/create_pbl.c index 9457a00b1..792747f0e 100644 --- a/tools/nxp/create_pbl/create_pbl.c +++ b/tools/nxp/create_pbl/create_pbl.c @@ -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(); } |