diff options
Diffstat (limited to 'fs/configfs/mount.c')
-rw-r--r-- | fs/configfs/mount.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c index 54bf0db0d4b0..de3b31d0a37d 100644 --- a/fs/configfs/mount.c +++ b/fs/configfs/mount.c | |||
@@ -150,7 +150,7 @@ static int __init configfs_init(void) | |||
150 | err = register_filesystem(&configfs_fs_type); | 150 | err = register_filesystem(&configfs_fs_type); |
151 | if (err) { | 151 | if (err) { |
152 | printk(KERN_ERR "configfs: Unable to register filesystem!\n"); | 152 | printk(KERN_ERR "configfs: Unable to register filesystem!\n"); |
153 | kobject_unregister(config_kobj); | 153 | kobject_put(config_kobj); |
154 | kmem_cache_destroy(configfs_dir_cachep); | 154 | kmem_cache_destroy(configfs_dir_cachep); |
155 | configfs_dir_cachep = NULL; | 155 | configfs_dir_cachep = NULL; |
156 | goto out; | 156 | goto out; |
@@ -159,7 +159,7 @@ static int __init configfs_init(void) | |||
159 | err = configfs_inode_init(); | 159 | err = configfs_inode_init(); |
160 | if (err) { | 160 | if (err) { |
161 | unregister_filesystem(&configfs_fs_type); | 161 | unregister_filesystem(&configfs_fs_type); |
162 | kobject_unregister(config_kobj); | 162 | kobject_put(config_kobj); |
163 | kmem_cache_destroy(configfs_dir_cachep); | 163 | kmem_cache_destroy(configfs_dir_cachep); |
164 | configfs_dir_cachep = NULL; | 164 | configfs_dir_cachep = NULL; |
165 | } | 165 | } |
@@ -170,7 +170,7 @@ out: | |||
170 | static void __exit configfs_exit(void) | 170 | static void __exit configfs_exit(void) |
171 | { | 171 | { |
172 | unregister_filesystem(&configfs_fs_type); | 172 | unregister_filesystem(&configfs_fs_type); |
173 | kobject_unregister(config_kobj); | 173 | kobject_put(config_kobj); |
174 | kmem_cache_destroy(configfs_dir_cachep); | 174 | kmem_cache_destroy(configfs_dir_cachep); |
175 | configfs_dir_cachep = NULL; | 175 | configfs_dir_cachep = NULL; |
176 | configfs_inode_exit(); | 176 | configfs_inode_exit(); |