summaryrefslogtreecommitdiff
path: root/src/lib/region_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/region_file.c')
-rw-r--r--src/lib/region_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/region_file.c b/src/lib/region_file.c
index e42c2afd1e..05d619c9a4 100644
--- a/src/lib/region_file.c
+++ b/src/lib/region_file.c
@@ -208,7 +208,7 @@ int region_file_init(struct region_file *f, const struct region_device *p)
f->slot = RF_FATAL;
/* Keep parent around for accessing data later. */
- if (rdev_chain(&f->rdev, p, 0, region_device_sz(p)))
+ if (rdev_chain_full(&f->rdev, p))
return -1;
if (rdev_readat(p, &mb, 0, sizeof(mb)) < 0) {