From 58afa3e7fba12a94b10cd9a77f7cd3785e10df99 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 28 Feb 2012 11:10:45 +0000 Subject: [PATCH] Check error from _lv_each_dependency _lv_mark_if_partial_collect cannot fail, however it's good to keep checking here as we do in all other cases. --- lib/metadata/metadata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index e1b1d77cc..a34f2e86e 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -2186,7 +2186,8 @@ static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data) } baton.partial = 0; - _lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton); + if (!_lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton)) + return_0; if (baton.partial) lv->status |= PARTIAL_LV; -- 2.43.5