diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-12-10 17:00:18 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-12-12 22:04:08 +0300 |
commit | d4929755e4d02bd3de3ae5569dab69cb9502c54f (patch) | |
tree | f2d91f1812c0b1fb66cd79b30711e3520ae4d3ba /tools/perf/scripts/python/syscall-counts.py | |
parent | 76850b54943ffd5037c97cc27794449ce05c31e9 (diff) | |
download | linux-d4929755e4d02bd3de3ae5569dab69cb9502c54f.tar.xz |
PCI: endpoint: Destroy the EPC device in devm_pci_epc_destroy()
The devm_pci_epc_destroy() comment says destroys the EPC device, but it
does not actually do that since devres_destroy() does not call
devm_pci_epc_release(), and it also can not fully undo what the API
devm_pci_epc_create() does, so it is faulty.
Fortunately, the faulty API has not been used by current kernel tree. Use
devres_release() instead of devres_destroy() so the EPC device will be
released.
Link: https://lore.kernel.org/r/20241210-pci-epc-core_fix-v3-1-4d86dd573e4b@quicinc.com
Fixes: 5e8cb4033807 ("PCI: endpoint: Add EP core layer to enable EP controller and EP functions")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions