aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2025-06-24 11:45:44 +0000
committerManivannan Sadhasivam <[email protected]>2025-06-25 22:09:12 +0000
commit910bdb8197f9322790c738bb32feaa11dba26909 (patch)
treef11f1dee60a06861f031e61e6ccfd3e30dc7bce3 /drivers/pci/controller/dwc
parentPCI: endpoint: Fix configfs group list head handling (diff)
downloadkernel-910bdb8197f9322790c738bb32feaa11dba26909.tar.gz
kernel-910bdb8197f9322790c738bb32feaa11dba26909.zip
PCI: endpoint: Fix configfs group removal on driver teardown
An endpoint driver configfs attributes group is added to the epf_group list of struct pci_epf_driver by pci_epf_add_cfs() but an added group is not removed from this list when the attribute group is unregistered with pci_ep_cfs_remove_epf_group(). Add the missing list_del() call in pci_ep_cfs_remove_epf_group() to correctly remove the attribute group from the driver list. With this change, once the loop over all attribute groups in pci_epf_remove_cfs() completes, the driver epf_group list should be empty. Add a WARN_ON() to make sure of that. Fixes: ef1433f717a2 ("PCI: endpoint: Create configfs entry for each pci_epf_device_id table entry") Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Cc: [email protected] Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions