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,9 +522,8 @@ 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;
md_autodetect_dev(bdev->bd_dev+p);
if (state->parts[p].flags)
md_autodetect_dev(bdev->bd_dev+p);
#endif
}
kfree(state);
......
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