]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: Propagate error from pci_epf_create()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 27 Feb 2026 03:06:53 +0000 (19:06 -0800)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 5 Mar 2026 06:46:09 +0000 (12:16 +0530)
commit0b74f7d72399d4c4422ed3d68ef28b3612f71e74
treec3889946407e582620de35a9765a0ba628b71336
parent88ce49abc2185da3d08da9f71290d46a393d3876
PCI: endpoint: Propagate error from pci_epf_create()

pci_epf_make() overwrites the actual error returned by pci_epf_create()
with -EINVAL, which hides the real failure reason. Use PTR_ERR(epf) instead
and print the error code.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260227030701.40533-1-alok.a.tiwari@oracle.com
drivers/pci/endpoint/pci-ep-cfs.c