diff --git a/daemons/lvmlockd/lvmlockd-sanlock.c b/daemons/lvmlockd/lvmlockd-sanlock.c index 3f078ea41..3f3ee14f3 100644 --- a/daemons/lvmlockd/lvmlockd-sanlock.c +++ b/daemons/lvmlockd/lvmlockd-sanlock.c @@ -684,10 +684,10 @@ int lm_init_vg_sanlock(char *ls_name, char *vg_name, uint32_t flags, char *vg_ar break; } - if (rv) { + if (rv < 0) { log_error("clear lv resource area %llu error %d", (unsigned long long)offset, rv); - break; + return rv; } offset += align_size; }