From b6b1c19365d20d926d8aa39bf591731a7f9bb75a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 20 Dec 2022 13:52:31 +0100 Subject: [PATCH] vdo: fix reader error path Nothing to be closed on this error path. --- device_mapper/vdo/vdo_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device_mapper/vdo/vdo_reader.c b/device_mapper/vdo/vdo_reader.c index 4f91f8011..3596afbd3 100644 --- a/device_mapper/vdo/vdo_reader.c +++ b/device_mapper/vdo/vdo_reader.c @@ -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) {