diff options
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 5e694b151c30..c35890990985 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -315,7 +315,7 @@ static int multipath_remove_disk(mddev_t *mddev, int number) | |||
315 | p->rdev = rdev; | 315 | p->rdev = rdev; |
316 | goto abort; | 316 | goto abort; |
317 | } | 317 | } |
318 | md_integrity_register(mddev); | 318 | err = md_integrity_register(mddev); |
319 | } | 319 | } |
320 | abort: | 320 | abort: |
321 | 321 | ||
@@ -489,7 +489,10 @@ static int multipath_run (mddev_t *mddev) | |||
489 | 489 | ||
490 | mddev->queue->backing_dev_info.congested_fn = multipath_congested; | 490 | mddev->queue->backing_dev_info.congested_fn = multipath_congested; |
491 | mddev->queue->backing_dev_info.congested_data = mddev; | 491 | mddev->queue->backing_dev_info.congested_data = mddev; |
492 | md_integrity_register(mddev); | 492 | |
493 | if (md_integrity_register(mddev)) | ||
494 | goto out_free_conf; | ||
495 | |||
493 | return 0; | 496 | return 0; |
494 | 497 | ||
495 | out_free_conf: | 498 | out_free_conf: |