]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - managemon.c
Fix: Sometimes mdmon throws core dump during reshape
[thirdparty/mdadm.git] / managemon.c
index cde0d8be9169092c4331837a7868ed9cb2a881be..6c21ecbd229ade70bd16c210c21af527e28571a0 100644 (file)
@@ -486,6 +486,12 @@ static void manage_member(struct mdstat_ent *mdstat,
                }
        }
 
+       /* we are after monitor kick,
+        * so container field can be cleared - check it again
+        */
+       if (a->container == NULL)
+               return;
+
        /* We don't check the array while any update is pending, as it
         * might container a change (such as a spare assignment) which
         * could affect our decisions.