aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index fd7324a86d13..62ebb1bc72be 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -1737,8 +1737,7 @@ static int run(mddev_t *mddev)
1737out_free_conf: 1737out_free_conf:
1738 if (conf->r10bio_pool) 1738 if (conf->r10bio_pool)
1739 mempool_destroy(conf->r10bio_pool); 1739 mempool_destroy(conf->r10bio_pool);
1740 if (conf->mirrors) 1740 kfree(conf->mirrors);
1741 kfree(conf->mirrors);
1742 kfree(conf); 1741 kfree(conf);
1743 mddev->private = NULL; 1742 mddev->private = NULL;
1744out: 1743out:
@@ -1754,8 +1753,7 @@ static int stop(mddev_t *mddev)
1754 blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ 1753 blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/
1755 if (conf->r10bio_pool) 1754 if (conf->r10bio_pool)
1756 mempool_destroy(conf->r10bio_pool); 1755 mempool_destroy(conf->r10bio_pool);
1757 if (conf->mirrors) 1756 kfree(conf->mirrors);
1758 kfree(conf->mirrors);
1759 kfree(conf); 1757 kfree(conf);
1760 mddev->private = NULL; 1758 mddev->private = NULL;
1761 return 0; 1759 return 0;