Home
last modified time | relevance | path

Searched hist:"01 c42d3d74cd51fd04da297898015d6b1ca00b28" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/board/xilinx/zynqmp/
H A Dzynqmp.cdiff 01c42d3d74cd51fd04da297898015d6b1ca00b28 Wed Dec 20 05:05:06 CST 2017 Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> 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>