]> git.baikalelectronics.ru Git - arm-tf.git/commit
plat/arm: Add assert for the valid address of dtb information
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Mon, 29 Jun 2020 06:17:24 +0000 (07:17 +0100)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Mon, 29 Jun 2020 13:01:03 +0000 (14:01 +0100)
commit1d60052e995b13ec49ba0b320a5056ce8e7a962a
treeac4689d592a5ef28fbd4adf4e04d2223baed64d9
parenta021b2dd871bba7cbbb578f53105a477ba5bda54
plat/arm: Add assert for the valid address of dtb information

Added assert in the code to check valid address of dtb information
structure retrieved from fw_config device tree.
This patch fixes coverity defect:360213.

Also, removed conditional calling of "fconf_populate" as "fconf_populate"
function already checks the validity of the device tree address received
and go to panic in case of address is NULL.

Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: Ib83e4e84a95e2456a12c7a2bb3fe70461d882cba
plat/arm/common/arm_bl2_setup.c
plat/arm/common/arm_dyn_cfg.c