1 ext4: null out kobject* during sysfs cleanup
3 From: Tyson Nottingham <tgnottingham@gmail.com>
5 Make cleanup of ext4_feat kobject consistent with similar objects.
7 Signed-off-by: Tyson Nottingham <tgnottingham@gmail.com>
8 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 fs/ext4/sysfs.c | 2 ++
11 1 file changed, 2 insertions(+)
13 diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c
14 index 1205261..aa8165e 100644
17 @@ -464,6 +464,7 @@ int __init ext4_init_sysfs(void)
20 kobject_put(ext4_feat);
23 kset_unregister(ext4_kset);
25 @@ -473,6 +474,7 @@ int __init ext4_init_sysfs(void)
26 void ext4_exit_sysfs(void)
28 kobject_put(ext4_feat);
30 kset_unregister(ext4_kset);
32 remove_proc_entry(proc_dirname, NULL);