From 015da8f5a8cc8c90394d443cbd9a882006aaedd2 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Sat, 22 Oct 2011 11:32:19 +1100 Subject: [PATCH] array_try_spare(): missing map_unlock() Signed-off-by: Jes Sorensen Signed-off-by: NeilBrown --- Incremental.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Incremental.c b/Incremental.c index 087da5a2..d265a673 100644 --- a/Incremental.c +++ b/Incremental.c @@ -1059,6 +1059,7 @@ static int array_try_spare(char *devname, int *dfdp, struct dev_policy *pol, } sysfs_free(chosen); } + map_unlock(&map); return rv; } -- 2.47.2