Files
linux/drivers/md
NeilBrown 62ead775d1 md: correctly handle probe of an 'mdp' device.
commit 8f5f02c460 upstream.

'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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-02 09:47:05 -05:00
..
2006-01-01 22:21:50 +01:00
2009-06-22 10:12:26 +01:00
2009-04-09 00:27:17 +01:00
2011-02-17 15:37:14 -08:00
2009-06-22 10:12:29 +01:00
2009-12-18 14:05:02 -08:00
2007-10-20 02:01:26 +01:00
2009-03-31 14:57:37 +11:00