From 1e57188a787601f6ad4fa7970d4540fa41293a7d Mon Sep 17 00:00:00 2001 From: Linda Xie Date: Wed, 28 Jan 2004 23:35:19 -0800 Subject: [PATCH] [PATCH] PCI Hotplug: add unlimited PHP slot name lengths support --- drivers/pci/hotplug/pci_hotplug_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index 64a5393387014..10a2aae77222c 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c @@ -571,7 +571,7 @@ int pci_hp_register (struct hotplug_slot *slot) 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 */ -- 2.53.0