diff options
author | Naresh Kumar PBS <nareshkumar.pbs@broadcom.com> | 2021-08-18 20:25:52 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-08-19 10:19:10 -0300 |
commit | 17f2569dce1848080825b8336e6b7c6900193b44 (patch) | |
tree | b3d9c166f339a8c377298952e7cb28a4768c5ac6 /drivers/infiniband/hw/bnxt_re | |
parent | f6018cc4602659e0e608849529704f3f41276c28 (diff) | |
download | lwn-17f2569dce1848080825b8336e6b7c6900193b44.tar.gz lwn-17f2569dce1848080825b8336e6b7c6900193b44.zip |
RDMA/bnxt_re: Add missing spin lock initialization
Add the missing initialization of srq lock.
Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters")
Link: https://lore.kernel.org/r/1629343553-5843-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/ib_verbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 283b6b81563c..ea0054c60fbc 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -1681,6 +1681,7 @@ int bnxt_re_create_srq(struct ib_srq *ib_srq, if (nq) nq->budget++; atomic_inc(&rdev->srq_count); + spin_lock_init(&srq->lock); return 0; |