From 0fea7ed82b1edf384735a2b535368f54a8584c3a Mon Sep 17 00:00:00 2001 From: Hirokazu Takahashi Date: Wed, 24 Apr 2013 11:42:44 +1000 Subject: 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 Signed-off-by: NeilBrown --- drivers/md/raid1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/md/raid1.c') diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index fd86b372692d..c055b92d7eb5 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -2901,6 +2901,7 @@ static int stop(struct mddev *mddev) if (conf->r1bio_pool) mempool_destroy(conf->r1bio_pool); kfree(conf->mirrors); + safe_put_page(conf->tmppage); kfree(conf->poolinfo); kfree(conf); mddev->private = NULL; -- cgit v1.2.3