u-boot/board/xilinx
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
..
microblaze-generic board_f: Drop setup_dram_config() wrapper 2017-04-05 16:36:51 -04:00
zynq arm: zynq: Add support for zc770-xm011-x16 configuration 2018-01-30 14:28:25 +01:00
zynqmp xilinx: zynqmp: Use strlen only if env_get doesn't return null 2018-01-30 14:28:35 +01:00