From: Jes Sorensen Date: Sat, 22 Oct 2011 00:32:19 +0000 (+1100) Subject: array_try_spare(): missing map_unlock() X-Git-Tag: mdadm-3.2.3~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=015da8f5a8cc8c90394d443cbd9a882006aaedd2;p=thirdparty%2Fmdadm.git array_try_spare(): missing map_unlock() Signed-off-by: Jes Sorensen Signed-off-by: NeilBrown --- 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; }