diff --git a/kernel/module.c b/kernel/module.c index 9db11911e04b7b55df05fd9f928f5629fe46430d..d5fcd24e5aff89c907fed9eee605647a48759db4 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1173,7 +1173,7 @@ static void free_notes_attrs(struct module_notes_attrs *notes_attrs, while (i-- > 0) sysfs_remove_bin_file(notes_attrs->dir, ¬es_attrs->attrs[i]); - kobject_del(notes_attrs->dir); + kobject_put(notes_attrs->dir); } kfree(notes_attrs); }