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

sanlock: set proper return value

In last patch one error path missed to assign correct return value.
Assing it directly to 'ret' as log_error was already reported.
This commit is contained in:
Zdenek Kabelac 2018-02-17 11:23:19 +01:00
parent 1671b83585
commit e87fa7c9ce

View File

@ -1121,7 +1121,7 @@ int lm_prepare_lockspace_sanlock(struct lockspace *ls)
goto fail;
}
if ((rv = build_dm_path(disk_path, SANLK_PATH_LEN, ls->vg_name, lock_lv_name)))
if ((ret = build_dm_path(disk_path, SANLK_PATH_LEN, ls->vg_name, lock_lv_name)))
goto fail;
/*