From eccf4e6e72230e7e03090a917afdc5fb6b8a6054 Mon Sep 17 00:00:00 2001 From: tychovrahe <brunam@seznam.cz> Date: Wed, 5 Mar 2025 09:40:39 +0100 Subject: [PATCH] fix(core/prodtest): add early return in case of otp batch reading error [no changelog] --- core/embed/projects/prodtest/cmd/prodtest_otp_batch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/embed/projects/prodtest/cmd/prodtest_otp_batch.c b/core/embed/projects/prodtest/cmd/prodtest_otp_batch.c index d13c04001d..4f0167393a 100644 --- a/core/embed/projects/prodtest/cmd/prodtest_otp_batch.c +++ b/core/embed/projects/prodtest/cmd/prodtest_otp_batch.c @@ -36,6 +36,7 @@ static void prodtest_otp_batch_read(cli_t* cli) { if (sectrue != flash_otp_read(FLASH_OTP_BLOCK_BATCH, 0, block, sizeof(block))) { cli_error(cli, CLI_ERROR, "Failed to read OTP memory."); + return; } char block_hex[FLASH_OTP_BLOCK_SIZE * 2 + 1];