> +static void pci_sriov_remove_sysfs_dev_files(struct pci_dev *dev) > +{ > + int pos; > + > + if ((dev->is_physfn) && pci_is_pcie(dev)) { > + pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_SRIOV); > + if (pos) > + device_remove_file(&dev->dev, pci_dev_sriov_attrs); Shouldn't it iterate over the attributes when removing them? -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html