summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorHirokazu Takahashi <taka@valinux.co.jp>2013-04-24 03:42:44 +0200
committerNeilBrown <neilb@suse.de>2013-04-30 06:49:26 +0200
commit0fea7ed82b1edf384735a2b535368f54a8584c3a (patch)
tree665a368ec22cf84d17b92b90c0966a8a12266b5d /drivers/md/raid10.c
parentDM RAID: Add message/status support for changing sync action (diff)
downloadlinux-0fea7ed82b1edf384735a2b535368f54a8584c3a.tar.xz
linux-0fea7ed82b1edf384735a2b535368f54a8584c3a.zip
md: raid1/raid10 md devices leak memory when stopping
Hi. Raid1 and raid10 devices leak memory every time they stop. This is a patch for linux-3.9.0-rc7 to fix this problem. Thanks, Hirokazu Takahashi. Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 2372926dc559..c35d912a7f9b 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -3826,6 +3826,7 @@ static int stop(struct mddev *mddev)
if (conf->r10bio_pool)
mempool_destroy(conf->r10bio_pool);
+ safe_put_page(conf->tmppage);
kfree(conf->mirrors);
kfree(conf);
mddev->private = NULL;