Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2e5df76 authored by Tyson Nottingham's avatar Tyson Nottingham Committed by Theodore Ts'o
Browse files

ext4: null out kobject* during sysfs cleanup



Make cleanup of ext4_feat kobject consistent with similar objects.

Signed-off-by: default avatarTyson Nottingham <tgnottingham@gmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 18db4b4e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 @@ int __init ext4_init_sysfs(void)
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);