summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 57b64dd871..c782818ced 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -202,7 +202,7 @@ int cbfs_prog_stage_load(struct prog *pstage)
const struct region_device *fh = prog_rdev(pstage);
if (rdev_readat(fh, &stage, 0, sizeof(stage)) != sizeof(stage))
- return 0;
+ return -1;
fsize = region_device_sz(fh);
fsize -= sizeof(stage);