ChangeSet 1.1518, 2004/01/29 15:35:19-08:00, lxiep@us.ibm.com [PATCH] PCI Hotplug: add unlimited PHP slot name lengths support drivers/pci/hotplug/pci_hotplug_core.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c --- a/drivers/pci/hotplug/pci_hotplug_core.c Thu Jan 29 17:24:09 2004 +++ b/drivers/pci/hotplug/pci_hotplug_core.c Thu Jan 29 17:24:09 2004 @@ -571,7 +571,7 @@ if ((slot->info == NULL) || (slot->ops == NULL)) return -EINVAL; - strlcpy(slot->kobj.name, slot->name, KOBJ_NAME_LEN); + kobject_set_name(&slot->kobj, slot->name); kobj_set_kset_s(slot, pci_hotplug_slots_subsys); /* this can fail if we have already registered a slot with the same name */