Commit e335a273 authored by Neil Brown's avatar Neil Brown Committed by Ingo Molnar

[PATCH] PATCH - cset 1.497.59.25 breaks MD autodetect

The partition changes shifted a lot of indexes down one, but this one
shouldn't have been shifted...
parent acf7aa2c
...@@ -251,7 +251,7 @@ static void check_partition(struct gendisk *hd, struct block_device *bdev) ...@@ -251,7 +251,7 @@ static void check_partition(struct gendisk *hd, struct block_device *bdev)
p[j-1].start_sect = state->parts[j].from; p[j-1].start_sect = state->parts[j].from;
p[j-1].nr_sects = state->parts[j].size; p[j-1].nr_sects = state->parts[j].size;
#if CONFIG_BLK_DEV_MD #if CONFIG_BLK_DEV_MD
if (!state->parts[j-1].flags) if (!state->parts[j].flags)
continue; continue;
md_autodetect_dev(bdev->bd_dev+j); md_autodetect_dev(bdev->bd_dev+j);
#endif #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