[PATCH] caam: Fix crash in case caam_jr_probe failed

2022-05-20 Thread sbabic
> From: Ye Li > 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 > Reviewed-by: Gaurav Jain Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic

[PATCH] caam: Fix crash in case caam_jr_probe failed

2022-05-11 Thread Gaurav Jain
From: Ye Li 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 Reviewed-by: Gaurav Jain --- arch/arm/cpu/armv7/ls102xa/cpu.c| 2 +- arch/arm/cpu/armv8/fsl-la