From 51cf74194f70ff52ed460395c2bb6b61c2473e06 Mon Sep 17 00:00:00 2001 From: Krzysztof Wojcik Date: Fri, 18 Feb 2011 23:51:17 +1100 Subject: FIX: Seg Fault in incremental if BBM log detected Bug detected for imsm metadata. Assembling of array using Incremental switch generate segmentation fault if BBM log is detected. Reason: missing return from Incremental_container if BBM is detected and unnecessary list=NULL assignment. This patch fix the problem and memory leak in this area. Signed-off-by: Krzysztof Wojcik Signed-off-by: NeilBrown --- Incremental.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Incremental.c b/Incremental.c index 889184fe..4c4b0c7e 100644 --- a/Incremental.c +++ b/Incremental.c @@ -1471,7 +1471,9 @@ static int Incremental_container(struct supertype *st, char *devname, if (list->array.state & (1<next) { -- cgit v1.2.3