mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
If the pci_find_pcie_root_port() function is called on a root port itself, return the root port rather than NULL. This effectively reverts commit0e40523287("PCI: fix oops when try to find Root Port for a PCI device") which added an extra check that would now be redundant. Fixes:a99b646afa("PCI: Disable PCIe Relaxed Ordering if unsupported") Fixes:c56d4450eb("PCI: Turn off Request Attributes to avoid Chelsio T5 Completion erratum") Signed-off-by: Thierry Reding <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Tested-by: Shawn Lin <[email protected]> Tested-by: Michael Ellerman <[email protected]> Signed-off-by: David S. Miller <[email protected]>