diff options
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 9fe6f1e84373..5b059e2d80cc 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c | |||
@@ -194,8 +194,10 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, | |||
194 | wq->rq.queue = dma_alloc_coherent(&(rdev->lldi.pdev->dev), | 194 | wq->rq.queue = dma_alloc_coherent(&(rdev->lldi.pdev->dev), |
195 | wq->rq.memsize, &(wq->rq.dma_addr), | 195 | wq->rq.memsize, &(wq->rq.dma_addr), |
196 | GFP_KERNEL); | 196 | GFP_KERNEL); |
197 | if (!wq->rq.queue) | 197 | if (!wq->rq.queue) { |
198 | ret = -ENOMEM; | ||
198 | goto free_sq; | 199 | goto free_sq; |
200 | } | ||
199 | PDBG("%s sq base va 0x%p pa 0x%llx rq base va 0x%p pa 0x%llx\n", | 201 | PDBG("%s sq base va 0x%p pa 0x%llx rq base va 0x%p pa 0x%llx\n", |
200 | __func__, wq->sq.queue, | 202 | __func__, wq->sq.queue, |
201 | (unsigned long long)virt_to_phys(wq->sq.queue), | 203 | (unsigned long long)virt_to_phys(wq->sq.queue), |