Skip to content

Commit

Permalink
RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
Browse files Browse the repository at this point in the history
Fix the missing dpi_tbl_lock mutex initialization.

Fixes: 0ac20fa ("RDMA/bnxt_re: Reorg the bar mapping")
Link: https://lore.kernel.org/r/1691642677-21369-4-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
  • Loading branch information
Kashyap Desai authored and Jason Gunthorpe committed Aug 10, 2023
1 parent 5ac8480 commit 64b6326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/bnxt_re/qplib_res.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res,
}

memset((u8 *)dpit->tbl, 0xFF, bytes);
mutex_init(&res->dpi_tbl_lock);
dpit->priv_db = dpit->ucreg.bar_reg + dpit->ucreg.offset;

return 0;
Expand Down

0 comments on commit 64b6326

Please sign in to comment.