]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: EPF: Fix error code in epf_ntb_bind()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 1 Aug 2022 10:15:25 +0000 (13:15 +0300)
committerJon Mason <jdmason@kudzu.us>
Tue, 9 Aug 2022 21:54:49 +0000 (17:54 -0400)
commitc4184c34060ce5ab826a5f44bd627083edad8edf
treeb07312483a801c3f7f2685bbe6b70b15d3bcc394
parent86af4ab0366f14ce138d5eb2c5d4e634337e5b6a
NTB: EPF: Fix error code in epf_ntb_bind()

Return an error code if pci_register_driver() fails.  Don't return
success.

Fixes: da51fd247424 ("NTB: EPF: support NTB transfer between PCI RC and EP connection")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/pci/endpoint/functions/pci-epf-vntb.c