mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 22:07:21 +07:00
IB/qib: Fix an error code in qib_sdma_verbs_send()
We accidentally return success on this error path.
Fixes: f931551baf
("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>
This commit is contained in:
parent
be5914c124
commit
5050ae5fa3
@ -575,8 +575,10 @@ int qib_sdma_verbs_send(struct qib_pportdata *ppd,
|
||||
dw = (len + 3) >> 2;
|
||||
addr = dma_map_single(&ppd->dd->pcidev->dev, sge->vaddr,
|
||||
dw << 2, DMA_TO_DEVICE);
|
||||
if (dma_mapping_error(&ppd->dd->pcidev->dev, addr))
|
||||
if (dma_mapping_error(&ppd->dd->pcidev->dev, addr)) {
|
||||
ret = -ENOMEM;
|
||||
goto unmap;
|
||||
}
|
||||
sdmadesc[0] = 0;
|
||||
make_sdma_desc(ppd, sdmadesc, (u64) addr, dw, dwoffset);
|
||||
/* SDmaUseLargeBuf has to be set in every descriptor */
|
||||
|
Loading…
Reference in New Issue
Block a user