array_try_spare(): missing map_unlock()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Jes Sorensen 2011-10-22 11:32:19 +11:00 committed by NeilBrown
parent eafa60fd6e
commit 015da8f5a8
1 changed files with 1 additions and 0 deletions

View 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;
}