]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Assemble: we were missing a 'close'
authorNeilBrown <neilb@suse.de>
Tue, 4 Nov 2008 09:51:12 +0000 (20:51 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 4 Nov 2008 09:51:12 +0000 (20:51 +1100)
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c

index 12e67b2cc2061396b35021e6683bfc0415a92016..0aff1be8350c85afb7747d83f746949ed30214b7 100644 (file)
@@ -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