aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ksysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ksysfs.c')
-rw-r--r--kernel/ksysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c
index 1081aff5fb9e..e53bc30e9ba5 100644
--- a/kernel/ksysfs.c
+++ b/kernel/ksysfs.c
@@ -154,7 +154,7 @@ notes_exit:
154group_exit: 154group_exit:
155 sysfs_remove_group(kernel_kobj, &kernel_attr_group); 155 sysfs_remove_group(kernel_kobj, &kernel_attr_group);
156kset_exit: 156kset_exit:
157 kobject_unregister(kernel_kobj); 157 kobject_put(kernel_kobj);
158exit: 158exit:
159 return error; 159 return error;
160} 160}