diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-04-26 03:29:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:00 -0400 |
commit | eb11d8ffceead1eb3d84366f1687daf2217e883e (patch) | |
tree | aedf84638f2bb8cc2d6f90120199191b917efa35 /lib/kobject_uevent.c | |
parent | 8b22c249e7de453961e4d253b19fc2a0bdd65d53 (diff) |
[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.c | 2 |
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) | |||
246 | if (hotplug_ops->name) | 246 | if (hotplug_ops->name) |
247 | name = hotplug_ops->name(kset, kobj); | 247 | name = hotplug_ops->name(kset, kobj); |
248 | if (name == NULL) | 248 | if (name == NULL) |
249 | name = kset->kobj.name; | 249 | name = kobject_name(&kset->kobj); |
250 | 250 | ||
251 | argv [0] = hotplug_path; | 251 | argv [0] = hotplug_path; |
252 | argv [1] = name; | 252 | argv [1] = name; |