]> git.dujemihanovic.xyz Git - u-boot.git/commit
caam: Fix crash in case caam_jr_probe failed
authorYe Li <ye.li@nxp.com>
Wed, 11 May 2022 08:26:20 +0000 (13:56 +0530)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:47 +0000 (12:36 +0200)
commitcda8f87349594a1df9cc8616e25944173c9d0a0c
tree5f7422564e3f170580dbb31e1cd4798c9427a0c2
parent5ed4c33f36a000dfacc8c0c98d148e42235ada6e
caam: Fix crash in case caam_jr_probe failed

If probing caam_jr returns failure, the variable "dev" will not be
initialized, so we can't use dev->name for the error print.
Otherwise it will cause crash.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
arch/arm/cpu/armv7/ls102xa/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/mach-imx/imx8/cpu.c
arch/arm/mach-imx/imx8m/soc.c
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-imx/mx7ulp/soc.c
arch/powerpc/cpu/mpc85xx/cpu_init.c
board/freescale/imx8mm_evk/spl.c
board/freescale/imx8mn_evk/spl.c
board/freescale/imx8mp_evk/spl.c