]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: fix gpt setenv
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Aug 2023 01:53:41 +0000 (03:53 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 27 Aug 2023 06:21:07 +0000 (08:21 +0200)
commitf47e9afa64697637fcf319e22c00459fe71ffaf8
tree979249cc9ab2afe5247e1565849f9ac045209201
parente8a3ae779366369337c8bb1e464797539b99cee0
cmd: fix gpt setenv

Do not assume that partitions are continuously numbered starting at 1.

Having a partition table with a single partition 63 is valid.

Fixes: d49644d4b566 ("cmd: gpt: add eMMC and GPT support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/gpt.c