diff options
-rw-r--r-- | src/lib/fmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fmap.c b/src/lib/fmap.c index 3889dd5f5d..ed186e0cae 100644 --- a/src/lib/fmap.c +++ b/src/lib/fmap.c @@ -122,7 +122,7 @@ static int find_fmap_directory(struct region_device *fmrd) if (boot == NULL) return -1; - fmap = rdev_mmap(boot, offset, sizeof(struct fmap)); + fmap = rdev_mmap(boot, offset, FMAP_SIZE); if (fmap == NULL) return -1; |