]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: pci-ep-msi: Fix NULL vs IS_ERR() check in pci_epf_write_msi_msg()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 1 Aug 2025 13:34:45 +0000 (16:34 +0300)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 11 Aug 2025 10:58:33 +0000 (16:28 +0530)
commit57a75fa9d56e310e883e4377205690e88c05781b
tree07771843ba6a8163ab189e893cd55f162bc7e79f
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
PCI: endpoint: pci-ep-msi: Fix NULL vs IS_ERR() check in pci_epf_write_msi_msg()

The pci_epc_get() function returns error pointers. It never returns NULL.
Update the check to match.

Fixes: 1c3b002c6bf6 ("PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/aIzCdV8jyBeql-Oa@stanley.mountain
drivers/pci/endpoint/pci-ep-msi.c