summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorTyson Nottingham <tgnottingham@gmail.com>2018-03-30 00:03:38 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-03-30 00:03:38 -0400
commitc2e5df762601157f9c101025f10f873ae792e6cb (patch)
tree2ccc79ad9d12598b77381757e4ec298ea6bf66b6 /fs/ext4
parent18db4b4e6fc31eda838dd1c1296d67dbcb3dc957 (diff)
downloadlinux-stable-c2e5df762601157f9c101025f10f873ae792e6cb.tar.gz
linux-stable-c2e5df762601157f9c101025f10f873ae792e6cb.tar.bz2
linux-stable-c2e5df762601157f9c101025f10f873ae792e6cb.zip
ext4: null out kobject* during sysfs cleanup
Make cleanup of ext4_feat kobject consistent with similar objects. Signed-off-by: Tyson Nottingham <tgnottingham@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c
index 1205261f130c..aa8165e7c44b 100644
--- a/fs/ext4/sysfs.c
+++ b/fs/ext4/sysfs.c
@@ -464,6 +464,7 @@ int __init ext4_init_sysfs(void)
feat_err:
kobject_put(ext4_feat);
+ ext4_feat = NULL;
kset_err:
kset_unregister(ext4_kset);
ext4_kset = NULL;
@@ -473,6 +474,7 @@ kset_err:
void ext4_exit_sysfs(void)
{
kobject_put(ext4_feat);
+ ext4_feat = NULL;
kset_unregister(ext4_kset);
ext4_kset = NULL;
remove_proc_entry(proc_dirname, NULL);