Skip to content

Commit

Permalink
[PATCH] kobject_hotplug() should use kobject_name()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 8b22c24 commit eb11d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb11d8f

Please sign in to comment.