summaryrefslogtreecommitdiff
path: root/src/lib/cbfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r--src/lib/cbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 1e8a93f6e0..9ac1bc084b 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -302,7 +302,7 @@ static int cbfs_master_header_props(struct cbfs_props *props)
if (rdev_readat(bdev, &rel_offset, offset, sizeof(int32_t)) < 0)
return -1;
- offset = fmap_top + rel_offset;
+ offset = fmap_top + (int32_t)le32_to_cpu(rel_offset);
if (rdev_readat(bdev, &header, offset, sizeof(header)) < 0)
return -1;