summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/cezanne/psp_verstage/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/psp_verstage/uart.c b/src/soc/amd/cezanne/psp_verstage/uart.c
index 5a45cb0545..2767b2eb27 100644
--- a/src/soc/amd/cezanne/psp_verstage/uart.c
+++ b/src/soc/amd/cezanne/psp_verstage/uart.c
@@ -10,7 +10,7 @@ uintptr_t get_uart_base(unsigned int idx)
{
uint32_t err;
- if (idx > ARRAY_SIZE(uart_bars))
+ if (idx >= ARRAY_SIZE(uart_bars))
return 0;
if (uart_bars[idx])