diff options
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index c53545f1baf6..025c4a9a3d5b 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c | |||
@@ -2546,7 +2546,7 @@ static int ocrdma_create_mq_eq(struct ocrdma_dev *dev) | |||
2546 | 2546 | ||
2547 | static int ocrdma_create_qp_eqs(struct ocrdma_dev *dev) | 2547 | static int ocrdma_create_qp_eqs(struct ocrdma_dev *dev) |
2548 | { | 2548 | { |
2549 | int num_eq, i, status; | 2549 | int num_eq, i, status = 0; |
2550 | int irq; | 2550 | int irq; |
2551 | unsigned long flags = 0; | 2551 | unsigned long flags = 0; |
2552 | 2552 | ||
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index 51fc9c7c0acf..e955f1f0848d 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | |||
@@ -334,7 +334,7 @@ static int ocrdma_copy_pd_uresp(struct ocrdma_pd *pd, | |||
334 | { | 334 | { |
335 | int status; | 335 | int status; |
336 | u64 db_page_addr; | 336 | u64 db_page_addr; |
337 | u64 dpp_page_addr; | 337 | u64 dpp_page_addr = 0; |
338 | u32 db_page_size; | 338 | u32 db_page_size; |
339 | struct ocrdma_alloc_pd_uresp rsp; | 339 | struct ocrdma_alloc_pd_uresp rsp; |
340 | struct ocrdma_ucontext *uctx = get_ocrdma_ucontext(ib_ctx); | 340 | struct ocrdma_ucontext *uctx = get_ocrdma_ucontext(ib_ctx); |
@@ -368,7 +368,8 @@ static int ocrdma_copy_pd_uresp(struct ocrdma_pd *pd, | |||
368 | return 0; | 368 | return 0; |
369 | 369 | ||
370 | ucopy_err: | 370 | ucopy_err: |
371 | ocrdma_del_mmap(pd->uctx, dpp_page_addr, OCRDMA_DPP_PAGE_SIZE); | 371 | if (pd->dpp_enabled) |
372 | ocrdma_del_mmap(pd->uctx, dpp_page_addr, OCRDMA_DPP_PAGE_SIZE); | ||
372 | dpp_map_err: | 373 | dpp_map_err: |
373 | ocrdma_del_mmap(pd->uctx, db_page_addr, db_page_size); | 374 | ocrdma_del_mmap(pd->uctx, db_page_addr, db_page_size); |
374 | return status; | 375 | return status; |