u-boot-brain/board/xilinx/zynqmp
Siva Durga Prasad Paladugu 01c42d3d74 xilinx: zynqmp: Use strlen only if env_get doesn't return null
Add check if boot_targets exists in environment and then
generate new_targets env accordingly. Performing strlen on
null address causes it to fail with exception if isolation
is enabled with DDR address zero as secure. It works with out
isolation enabled as zero is valid address but it may lead to
junk values in boot_targets.
This patch fixes the issue by checking return value of env_get
so that it generate boot_targets properly.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2018-01-30 14:28:35 +01:00
..
MAINTAINERS ARM64: zynqmp: Simplify MAINTAINERS file to support more boards 2016-04-04 20:28:38 +02:00
Makefile arm64: zynqmp: Add Kconfig option for adding psu_init to binary 2017-08-02 09:11:52 +02:00
sleep.h arm64: zynqmp: Add empty sleep.h file for psu_init* compilation 2017-06-20 16:40:58 +02:00
xil_io.h arm64: zynqmp: Fix psu_init* external functions 2017-06-19 16:53:10 +02:00
zynqmp.c xilinx: zynqmp: Use strlen only if env_get doesn't return null 2018-01-30 14:28:35 +01:00