MD: no integrity register if no gendisk
authorJonathan Brassow <jbrassow@f14.redhat.com>
Wed, 8 Jun 2011 05:10:08 +0000 (15:10 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 05:10:08 +0000 (15:10 +1000)
commit629acb6abac0ef217ee579e14084af2ce7381dbc
tree75963147cec3ff2e16aa775d103cb41706e503b0
parent59c5f46fbe01a00eedf54a23789634438bb80603
MD: no integrity register if no gendisk

Don't attempt md_integrity_register if there is no gendisk struct available.

When MD arrays are built via device-mapper, the gendisk structure is not
available via mddev.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c