]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PCI Hotplug: add unlimited PHP slot name lengths support
authorLinda Xie <lxiep@us.ibm.com>
Thu, 29 Jan 2004 07:35:19 +0000 (23:35 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 29 Jan 2004 07:35:19 +0000 (23:35 -0800)
drivers/pci/hotplug/pci_hotplug_core.c

index 64a5393387014a04e3e7ed80710aa53fa8af949a..10a2aae77222c88c2b5c6e8560f7adf24829caa2 100644 (file)
@@ -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 */