summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
commit56a8da69b1decc48d6563202648a89a630866d61 (patch)
treeec41b2cef356987b609a400ca5539f05cf88e28c /Assemble.c
parent045495a3945db353568eba82c6a37c57a24f1800 (diff)
downloadmdadm-56a8da69b1decc48d6563202648a89a630866d61.tar.gz
mdadm-56a8da69b1decc48d6563202648a89a630866d61.tar.xz
mdadm-56a8da69b1decc48d6563202648a89a630866d61.zip
Assemble: we were missing a 'close'
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 12e67b2..0aff1be 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1169,6 +1169,7 @@ int Assemble(struct supertype *st, char *mddev,
}
if (auto_assem)
ioctl(mdfd, STOP_ARRAY, NULL);
+ close(mdfd);
return 1;
} else {
/* The "chosen_drive" is a good choice, and if necessary, the superblock has