Commit 1e57188a authored by Linda Xie's avatar Linda Xie Committed by Linus Torvalds

[PATCH] PCI Hotplug: add unlimited PHP slot name lengths support

parent 272b06a8
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment