summaryrefslogtreecommitdiffstats
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-04-26 02:29:58 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 15:15:00 -0700
commiteb11d8ffceead1eb3d84366f1687daf2217e883e (patch)
treeaedf84638f2bb8cc2d6f90120199191b917efa35 /lib/kobject_uevent.c
parent8b22c249e7de453961e4d253b19fc2a0bdd65d53 (diff)
downloadop-kernel-dev-eb11d8ffceead1eb3d84366f1687daf2217e883e.zip
op-kernel-dev-eb11d8ffceead1eb3d84366f1687daf2217e883e.tar.gz
[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 2a4e767..1ede5aa 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;
OpenPOWER on IntegriCloud