summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/st/common/cmd_stboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
index d77046499a0..58d9f205b92 100644
--- a/board/st/common/cmd_stboard.c
+++ b/board/st/common/cmd_stboard.c
@@ -92,6 +92,11 @@ static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc,
DM_DRIVER_GET(stm32mp_bsec),
&dev);
+ if (ret) {
+ puts("Can't get BSEC device\n");
+ return CMD_RET_FAILURE;
+ }
+
ret = misc_read(dev, STM32_BSEC_OTP(BSEC_OTP_BOARD),
&otp, sizeof(otp));