mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Theodore Ts'o
parent
18db4b4e6f
commit
c2e5df7626
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user