RE: PROBLEM: 2.6.7 Linux Kernel Crash While Detecting PCI Devices

John Riggs
2004-08-10T18:21:18Z

The problem appears to be coming from the following series of calls:

returns EEXIST
create_dir
sysfs_create_dir
create_dir
kobject_add
class_device_add
class_device_register
pci_alloc_child_bus

This causes pci_bus* child->class_dev.kobj.dentry to be NULL, which is
passed into class_device_create_file eventually becoming a NULL POINTER
in the function sysfs_add_file. (The NULL variable in sysfs_add_file is
now called dir.)

I don't have much of an understanding of the kernel, but it appears to
me that a PCI device is getting created twice. Does anybody have any
pointers as to what might be going on, or can point me in the right
direction to look?

Thanks,
John