--- 2.5.43/fs/partitions/check.c~md-fix	Tue Oct 15 21:45:51 2002
+++ 2.5.43-akpm/fs/partitions/check.c	Tue Oct 15 21:47:07 2002
@@ -522,9 +522,8 @@ int rescan_partitions(struct gendisk *di
 			continue;
 		add_partition(disk, p, from, size);
 #if CONFIG_BLK_DEV_MD
-		if (!state->parts[j].flags)
-			continue;
-		md_autodetect_dev(bdev->bd_dev+p);
+		if (state->parts[p].flags)
+			md_autodetect_dev(bdev->bd_dev+p);
 #endif
 	}
 	kfree(state);
.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/