Re: [PATCH] PCI Update for 2.6.2-rc2

From: Greg KH
Date: Thu Jan 29 2004 - 21:04:55 EST


ChangeSet 1.1518, 2004/01/29 15:35:19-08:00, lxiep@xxxxxxxxxx

[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 */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/