]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
authorKashyap Desai <kashyap.desai@broadcom.com>
Thu, 10 Aug 2023 04:44:37 +0000 (21:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 10 Aug 2023 19:35:54 +0000 (16:35 -0300)
Fix the missing dpi_tbl_lock mutex initialization.

Fixes: 0ac20faf5d83 ("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>
drivers/infiniband/hw/bnxt_re/qplib_res.c

index 5fd8f7c90bb06a8b734f568c1c24c06a70457282..739d942761d16de6f9e187ddd98b0ced6612d9d6 100644 (file)
@@ -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;