mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
kobject: Fix the kobj_set_name reference in kset_register() kernel-doc
The kernel-doc comment of kset_register() refers to kobj_set_name, which
does not exist. The name is kobject_set_name. Say kobject_set_name.
Fixes: 1662cea462 ("kset: fix memory leak when kset_register() returns error")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ Also drop the misplaced braces in "allocated by()". - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
This commit is contained in:
committed by
Danilo Krummrich
parent
7db73c69c8
commit
3aac49b236
+1
-1
@@ -855,7 +855,7 @@ EXPORT_SYMBOL_GPL(kobj_sysfs_ops);
|
||||
* kset_register() - Initialize and add a kset.
|
||||
* @k: kset.
|
||||
*
|
||||
* NOTE: On error, the kset.kobj.name allocated by() kobj_set_name()
|
||||
* NOTE: On error, the kset.kobj.name allocated by kobject_set_name()
|
||||
* is freed, it can not be used any more.
|
||||
*/
|
||||
int kset_register(struct kset *k)
|
||||
|
||||
Reference in New Issue
Block a user