Commit 8fd0e597 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix the build for CONFIG_MD

Use 'p', not 'j'
parent e108deb3
......@@ -522,8 +522,7 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
continue;
add_partition(disk, p, from, size);
#if CONFIG_BLK_DEV_MD
if (!state->parts[j].flags)
continue;
if (state->parts[p].flags)
md_autodetect_dev(bdev->bd_dev+p);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment