aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 9db11911e04b..d5fcd24e5aff 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1173,7 +1173,7 @@ static void free_notes_attrs(struct module_notes_attrs *notes_attrs,
1173 while (i-- > 0) 1173 while (i-- > 0)
1174 sysfs_remove_bin_file(notes_attrs->dir, 1174 sysfs_remove_bin_file(notes_attrs->dir,
1175 &notes_attrs->attrs[i]); 1175 &notes_attrs->attrs[i]);
1176 kobject_del(notes_attrs->dir); 1176 kobject_put(notes_attrs->dir);
1177 } 1177 }
1178 kfree(notes_attrs); 1178 kfree(notes_attrs);
1179} 1179}