summaryrefslogtreecommitdiffstats
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-04-26 09:29:58 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:00 +0200
commiteb11d8ffceead1eb3d84366f1687daf2217e883e (patch)
treeaedf84638f2bb8cc2d6f90120199191b917efa35 /lib/kobject_uevent.c
parentMerge master.kernel.org:/home/rmk/linux-2.6-arm (diff)
downloadlinux-eb11d8ffceead1eb3d84366f1687daf2217e883e.tar.xz
linux-eb11d8ffceead1eb3d84366f1687daf2217e883e.zip
[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>
Diffstat (limited to 'lib/kobject_uevent.c')
-rw-r--r--lib/kobject_uevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 2a4e7671eaf4..1ede5aa33376 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -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;