mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
[PATCH] kobject_hotplug() should use kobject_name()
kobject: kobject_hotplug should use kobject_name() instead of
accessing kobj->name directly since for objects with
long names it can contain garbage.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
8b22c249e7
commit
eb11d8ffce
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ void kobject_hotplug(struct kobject *kobj, enum kobject_action action)
|
|||
if (hotplug_ops->name)
|
||||
name = hotplug_ops->name(kset, kobj);
|
||||
if (name == NULL)
|
||||
name = kset->kobj.name;
|
||||
name = kobject_name(&kset->kobj);
|
||||
|
||||
argv [0] = hotplug_path;
|
||||
argv [1] = name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue