summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-12-14 03:32:16 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2020-01-15 22:43:49 +0100
commit820d366736c949ffe698d3b3fe1266a91da1766d (patch)
tree33f880bb75e3979c8d69da399bd4b4c84bdc3db6 /fs/f2fs/sysfs.c
parentf2fs: declare nested quota_sem and remove unnecessary sems (diff)
downloadlinux-820d366736c949ffe698d3b3fe1266a91da1766d.tar.xz
linux-820d366736c949ffe698d3b3fe1266a91da1766d.zip
f2fs: free sysfs kobject
Detected kmemleak. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-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 70945ceb9c0c..5963316f391a 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -786,4 +786,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);
}