From 71693a66341e7d9d683ef32981243cb4c4439351 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Wed, 30 Jun 2021 17:04:22 +0200 Subject: [PATCH] fix(plat/st): panic if boot interface is wrong Add a panic() at the end of stm32mp_io_setup() if the boot interface given in ROM code boot context is not supported. Change-Id: I0d50f21a11231febd21041b6e63108cc3e6f4f0c Signed-off-by: Yann Gautier --- plat/st/common/bl2_io_storage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plat/st/common/bl2_io_storage.c b/plat/st/common/bl2_io_storage.c index 0a18d991e..3dafcb978 100644 --- a/plat/st/common/bl2_io_storage.c +++ b/plat/st/common/bl2_io_storage.c @@ -651,6 +651,7 @@ void stm32mp_io_setup(void) default: ERROR("Boot interface %d not supported\n", boot_context->boot_interface_selected); + panic(); break; } }