]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra: sanity check NS address and size before use
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 3 Jun 2020 04:16:00 +0000 (21:16 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Sun, 21 Jun 2020 20:34:23 +0000 (13:34 -0700)
commit685e56092d91d40645a11406f84c2335f1dbe37a
tree0cece0714ffbbfa54da2f6c9823d102eb746ce55
parenta7749acc107a12ff868b30d2f8b87929eff968b4
Tegra: sanity check NS address and size before use

This patch updates the 'bl31_check_ns_address()' helper function to
check that the memory address and size passed by the NS world are not
zero.

The helper fucntion also returns the error code as soon as it detects
inconsistencies, to avoid multiple error paths from kicking in for the
same input parameters.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I46264f913954614bedcbde12e47ea0c70cd19be0
plat/nvidia/tegra/common/tegra_bl31_setup.c