diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-12-14 05:32:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-24 10:36:50 +0300 |
commit | 0016939be0eee47d1cd78ca6fca627c5f59d0655 (patch) | |
tree | 4ce6d758e200fff86447c96c05946596fa933ad6 | |
parent | 06c34c604b13c1f3f4a0fccb52389b38869f49ec (diff) | |
download | linux-0016939be0eee47d1cd78ca6fca627c5f59d0655.tar.xz |
f2fs: free sysfs kobject
[ Upstream commit 820d366736c949ffe698d3b3fe1266a91da1766d ]
Detected kmemleak.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/f2fs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index b558b64a4c9c..8544c0ab7b32 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -782,4 +782,5 @@ void f2fs_unregister_sysfs(struct f2fs_sb_info *sbi) remove_proc_entry(sbi->sb->s_id, f2fs_proc_root); } kobject_del(&sbi->s_kobj); + kobject_put(&sbi->s_kobj); } |