diff options
| author | Zijun Hu <[email protected]> | 2024-11-07 00:53:09 +0000 |
|---|---|---|
| committer | Krzysztof Wilczyński <[email protected]> | 2024-11-18 17:18:19 +0000 |
| commit | 688d2eb4c6fcfdcdaed0592f9df9196573ff5ce2 (patch) | |
| tree | ea9581686ca61f0d6536d02a54187a6bce390d76 /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy() (diff) | |
| download | kernel-688d2eb4c6fcfdcdaed0592f9df9196573ff5ce2.tar.gz kernel-688d2eb4c6fcfdcdaed0592f9df9196573ff5ce2.zip | |
PCI: endpoint: Clear secondary (not primary) EPC in pci_epc_remove_epf()
In addition to a primary endpoint controller, an endpoint function may be
associated with a secondary endpoint controller, epf->sec_epc, to provide
NTB (non-transparent bridge) functionality.
Previously, pci_epc_remove_epf() incorrectly cleared epf->epc instead of
epf->sec_epc when removing from the secondary endpoint controller.
Extend the epc->list_lock coverage and clear either epf->epc or
epf->sec_epc as indicated.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 63840ff53223 ("PCI: endpoint: Add support to associate secondary EPC with EPF")
Signed-off-by: Zijun Hu <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
[mani: reworded subject and description]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
