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) ...@@ -522,9 +522,8 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
continue; continue;
add_partition(disk, p, from, size); add_partition(disk, p, from, size);
#if CONFIG_BLK_DEV_MD #if CONFIG_BLK_DEV_MD
if (!state->parts[j].flags) if (state->parts[p].flags)
continue; md_autodetect_dev(bdev->bd_dev+p);
md_autodetect_dev(bdev->bd_dev+p);
#endif #endif
} }
kfree(state); 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