X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Assemble.c;fp=Assemble.c;h=9e19246caccadf3ccb97b0189e04ac181cd019e0;hp=3c10b6cd27c20074793a1f9b00af43e4771f78cc;hb=31b6f0cdc1f36d92bb233344bbe4a4a01739d37a;hpb=2920144ec9c645bda604c8b60ef5658b36f1952f diff --git a/Assemble.c b/Assemble.c index 3c10b6cd..9e19246c 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1671,6 +1671,8 @@ try_again: int j = best[i]; unsigned int desired_state; + if (j < 0) + continue; if (devices[j].i.disk.raid_disk == MD_DISK_ROLE_JOURNAL) desired_state = (1<= content->array.raid_disks * 2) @@ -1680,8 +1682,6 @@ try_again: else desired_state = (1<