mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-09 01:18:39 +03:00
vdo: fix reader error path
Nothing to be closed on this error path.
(cherry picked from commit b6b1c19365
)
This commit is contained in:
parent
57eb6c1b9c
commit
05b4d98a51
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user