From: Heinrich Schuchardt Date: Tue, 11 Jan 2022 14:58:08 +0000 (+0100) Subject: stm32mp: fix board_get_alt_info_mmc() X-Git-Tag: v2022.07~212^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ddc71c13e1b78560d3869bc394144e91972e44f;p=platform%2Fkernel%2Fu-boot.git stm32mp: fix board_get_alt_info_mmc() MAX_SEARCH_PARTITIONS is the highest possible partition number. Do not skip the last partition in board_get_alt_info_mmc(). Signed-off-by: Heinrich Schuchardt Reviewed-by: Patrice Chotard Reviewed-by: Patrick Delaunay --- diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c index a3f0da5..fa48b2a 100644 --- a/board/st/common/stm32mp_dfu.c +++ b/board/st/common/stm32mp_dfu.c @@ -57,7 +57,7 @@ static void board_get_alt_info_mmc(struct udevice *dev, char *buf) first = false; } - for (p = 1; p < MAX_SEARCH_PARTITIONS; p++) { + for (p = 1; p <= MAX_SEARCH_PARTITIONS; p++) { if (part_get_info(desc, p, &info)) continue; if (!first)