Skip to content

Commit 64b6326

Browse files
kadesai16jgunthorpe
authored andcommitted
RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
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>
1 parent 5ac8480 commit 64b6326

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/bnxt_re/qplib_res.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res,
819819
}
820820

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

824825
return 0;

0 commit comments

Comments
 (0)