IB/qib: Fix an error code in qib_sdma_verbs_send()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:05:36 +0000 (10:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:38 +0000 (15:34 +0100)
commita2773e0f82dd6c2e99fb605b4c773707bba3ca4a
tree750e6173c7a8270148b01ed9d65b4975c77da92c
parente56109035ee301ee1bf158ef469174f5a436e642
IB/qib: Fix an error code in qib_sdma_verbs_send()

[ Upstream commit 5050ae5fa3d54c8e83e1e447cc7e3591110a7f57 ]

We accidentally return success on this error path.

Fixes: f931551bafe1 ("IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/qib/qib_sdma.c