diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-11 15:58:08 +0100 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2022-01-24 10:59:28 +0100 |
commit | 6ddc71c13e1b78560d3869bc394144e91972e44f (patch) | |
tree | e58d374f14d519e5e1f206c455c9a0dff422b703 /board/st/common | |
parent | 332facce6f5669fc1bb8d150c08cee2ebdae6d2b (diff) | |
download | u-boot-6ddc71c13e1b78560d3869bc394144e91972e44f.tar.gz |
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 <heinrich.schuchardt@canonical.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'board/st/common')
-rw-r--r-- | board/st/common/stm32mp_dfu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c index a3f0da5b5b8..fa48b2a35ee 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) |