diff options
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r-- | fs/debugfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 97f6381c36c2..d26e2826ba5b 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -438,7 +438,7 @@ static int __init debugfs_init(void) | |||
438 | 438 | ||
439 | retval = register_filesystem(&debug_fs_type); | 439 | retval = register_filesystem(&debug_fs_type); |
440 | if (retval) | 440 | if (retval) |
441 | kobject_unregister(debug_kobj); | 441 | kobject_put(debug_kobj); |
442 | return retval; | 442 | return retval; |
443 | } | 443 | } |
444 | 444 | ||
@@ -446,7 +446,7 @@ static void __exit debugfs_exit(void) | |||
446 | { | 446 | { |
447 | simple_release_fs(&debugfs_mount, &debugfs_mount_count); | 447 | simple_release_fs(&debugfs_mount, &debugfs_mount_count); |
448 | unregister_filesystem(&debug_fs_type); | 448 | unregister_filesystem(&debug_fs_type); |
449 | kobject_unregister(debug_kobj); | 449 | kobject_put(debug_kobj); |
450 | } | 450 | } |
451 | 451 | ||
452 | core_initcall(debugfs_init); | 452 | core_initcall(debugfs_init); |