diff options
author | NeilBrown <neilb@suse.de> | 2011-02-16 03:58:51 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-02-16 03:58:51 +0100 |
commit | 8f5f02c460b7ca74ce55ce126ce0c1e58a3f923d (patch) | |
tree | de4f933fe250bd2ba71727f535432a82ef68883b /net/atm | |
parent | md: don't set_capacity before array is active. (diff) | |
download | linux-8f5f02c460b7ca74ce55ce126ce0c1e58a3f923d.tar.xz linux-8f5f02c460b7ca74ce55ce126ce0c1e58a3f923d.zip |
md: correctly handle probe of an 'mdp' device.
'mdp' devices are md devices with preallocated device numbers
for partitions. As such it is possible to mknod and open a partition
before opening the whole device.
this causes md_probe() to be called with a device number of a
partition, which in-turn calls mddev_find with such a number.
However mddev_find expects the number of a 'whole device' and
does the wrong thing with partition numbers.
So add code to mddev_find to remove the 'partition' part of
a device number and just work with the 'whole device'.
This patch addresses https://bugzilla.kernel.org/show_bug.cgi?id=28652
Reported-by: hkmaly@bigfoot.com
Signed-off-by: NeilBrown <neilb@suse.de>
Cc: <stable@kernel.org>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions