Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1588595

[PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount

From Chao Yu <yuchao0@huawei.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount
Date 2017-02-27 11:50 +0100
Message-ID <tfr2p-4lJ-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 751e1068db17..53305880c455 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -818,7 +818,7 @@ static void f2fs_put_super(struct super_block *sb)
 	kfree(sbi->raw_super);
 
 	destroy_device_list(sbi);
-
+	mempool_destroy(sbi->write_io_dummy);
 	destroy_percpu_info(sbi);
 	kfree(sbi);
 }
-- 
2.8.2.295.g3f1c1d0

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount Chao Yu <yuchao0@huawei.com> - 2017-02-27 11:50 +0100
  [PATCH 2/2] f2fs: fix to enlarge size of write_io_dummy mempool Chao Yu <yuchao0@huawei.com> - 2017-02-27 11:50 +0100

csiph-web