boot: Don't change the method count after global bootmeths
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2025 15:44:12 +0000 (16:44 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 20:16:56 +0000 (14:16 -0600)
commiteff1dca96330269c8281b17d00f5d2d0e62bd26e
treec73590db763042b09de96a1702f43d80bb852383
parent4ce78089b2a615eab466347e8996fbd54a876234
boot: Don't change the method count after global bootmeths

At present before scanning global bootmeths, the iterator sets the
method count to the index of the first global bootmeth. Now that we
support scanning the global bootmeths multiple times, we must leave this
count alone.

Check against have_global and first_glob_method instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootflow.c
test/boot/bootflow.c