diff options
-rw-r--r-- | drivers/block/host_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/host_dev.c b/drivers/block/host_dev.c index 30c7415..5231343 100644 --- a/drivers/block/host_dev.c +++ b/drivers/block/host_dev.c @@ -61,6 +61,7 @@ static int host_sb_attach_file(struct udevice *dev, const char *filename) if (size % desc->blksz) { printf("The size of host backing file '%s' is not multiple of " "the device block size\n", filename); + ret = -EINVAL; goto err_fname; } desc->lba = size / desc->blksz; |