diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c index 1205261f130cbfa8ae82632399aa7beb73e4cc6a..aa8165e7c44b3192053d2d38f089bf665a3620ca 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 @@ 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);