]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
array_try_spare(): missing map_unlock()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 22 Oct 2011 00:32:19 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Sat, 22 Oct 2011 00:32:19 +0000 (11:32 +1100)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c

index 087da5a232c3f6fae1ecf68bd5b3fed75a23b044..d265a673191e6cd56df3e4d7c763856ef86fcc72 100644 (file)
@@ -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;
 }