]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
getinfo_super now clears the 'info' structure before filling it in.
[thirdparty/mdadm.git] / Create.c
index 1aeff77b7668ba1eb7cacfcf3ffa90bccbf43ccb..7b4d0feceabe7e9c193d430b0aafb054910e86f6 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -658,8 +658,8 @@ int Create(struct supertype *st, char *mddev,
                goto abort;
 
        total_slots = info.array.nr_disks;
-       sysfs_init(&info, mdfd, 0);
        st->ss->getinfo_super(st, &info, NULL);
+       sysfs_init(&info, mdfd, 0);
 
        if (did_default && verbose >= 0) {
                if (is_subarray(info.text_version)) {