summaryrefslogtreecommitdiff
path: root/util/cbfstool/flashmap/fmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/flashmap/fmap.c')
-rw-r--r--util/cbfstool/flashmap/fmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/flashmap/fmap.c b/util/cbfstool/flashmap/fmap.c
index 24181d0b43..733f468390 100644
--- a/util/cbfstool/flashmap/fmap.c
+++ b/util/cbfstool/flashmap/fmap.c
@@ -139,7 +139,7 @@ static long int fmap_bsearch(const uint8_t *image, size_t len)
* remainder when modding the offset with the previous stride. This
* makes it so that each offset is only checked once.
*/
- for (stride = len / 2; stride >= 1; stride /= 2) {
+ for (stride = len / 2; stride >= 16; stride /= 2) {
if (fmap_found)
break;