1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vdo: fix reader error path

Nothing to be closed on this error path.
This commit is contained in:
Zdenek Kabelac 2022-12-20 13:52:31 +01:00
parent 4baef0f93f
commit b6b1c19365

View File

@ -189,7 +189,7 @@ bool dm_vdo_parse_logical_size(const char *vdo_path, uint64_t *logical_blocks)
*logical_blocks = 0;
if ((fh = open(vdo_path, O_RDONLY)) == -1) {
log_sys_debug("Failed to open VDO backend %s.", vdo_path);
goto err;
return false;
}
if (ioctl(fh, BLKGETSIZE64, &size) == -1) {