]> git.baikalelectronics.ru Git - arm-tf.git/commit
coverity: Fix MISRA null pointer violations
authorZelalem <zelalem.aweke@arm.com>
Wed, 5 Feb 2020 20:12:39 +0000 (14:12 -0600)
committerZelalem <zelalem.aweke@arm.com>
Wed, 5 Feb 2020 20:53:02 +0000 (14:53 -0600)
commit466bb285c6985027c75a230e39f2ae246fd07971
tree593c3f6465c7fdd981c452b5034ab8edf75b7205
parent235c8174ffe55bfc1108c02e0b41ca9916428f21
coverity: Fix MISRA null pointer violations

Fix code that violates the MISRA rule:
MISRA C-2012 Rule 11.9: Literal "0" shall not be used as
null pointer constant.

The fix explicitly checks whether a pointer is NULL.

Change-Id: Ibc318dc0f464982be9a34783f24ccd1d44800551
Signed-off-by: Zelalem <zelalem.aweke@arm.com>
bl1/aarch64/bl1_context_mgmt.c
bl1/bl1_main.c
bl2/bl2_image_load_v2.c
common/desc_image_load.c
drivers/console/multi_console.c
lib/utils/mem_region.c
plat/arm/common/arm_bl2_setup.c