]> git.baikalelectronics.ru Git - uboot.git/commit
armv8: fsl-layerscape: check for crypto node first in fdt_fixup_remove_jr
authorMathew McBride <matt@traverse.com.au>
Wed, 12 Apr 2023 07:38:13 +0000 (07:38 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 5 May 2023 01:46:03 +0000 (09:46 +0800)
commit094ac960b8a521d844cc4455a30903bafd34f229
treefe4da30604d20e0e053ba7410cca5de10c771003
parent858e94f697c0b23d3e5e77c96393c4e9a36dd99c
armv8: fsl-layerscape: check for crypto node first in fdt_fixup_remove_jr

This a problem I found while updating the U-Boot fsl-ls1088a.dtsi
to match the Linux version.

fdt_fixup_remove_jr did not check whether there was a "crypto"
alias in the device tree before calling more fdt_* functions,
which resulted in a crash.

Fixes: 2f072f3c
("ARMv8/sec_firmware : Update chosen/kaslr-seed with random number")

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # on LS1088A-RDB
arch/arm/cpu/armv8/fsl-layerscape/fdt.c