summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-12-13 18:32:16 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 16:36:04 +0100
commit7d36bf199518818956c4369e16337ea0aa3c423a (patch)
tree6de835ebd807548016d1b42fb5e35f95724a81d7 /fs/f2fs
parentaf9f7ff24e89689390a79b38df195b3909f42939 (diff)
downloadlinux-stable-7d36bf199518818956c4369e16337ea0aa3c423a.tar.gz
linux-stable-7d36bf199518818956c4369e16337ea0aa3c423a.tar.bz2
linux-stable-7d36bf199518818956c4369e16337ea0aa3c423a.zip
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index 93af9d7dfcdc..79e45e760c20 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -557,4 +557,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);
}