diff --git a/devicemodel/hw/block_if.c b/devicemodel/hw/block_if.c index 2a06b7ecf..e7cadf2b3 100644 --- a/devicemodel/hw/block_if.c +++ b/devicemodel/hw/block_if.c @@ -662,7 +662,7 @@ blockif_open(const char *optstr, const char *ident) if (size < DEV_BSIZE || (size & (DEV_BSIZE - 1))) { WPRINTF(("%s size not corret, should be multiple of %d\n", nopt, DEV_BSIZE)); - return 0; + goto err; } psectsz = sbuf.st_blksize; }