Skip to content

Commit

Permalink
Merge pull request #1487 from hginjgerx/td
Browse files Browse the repository at this point in the history
libhns: Fix no locking in the exception branch of wr start()
  • Loading branch information
rleon authored Aug 1, 2024
2 parents a7528e0 + d1d0ac5 commit 6cc2b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/hns/hns_roce_u_hw_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ static void wr_start(struct ibv_qp_ex *ibv_qp)
if (state == IBV_QPS_RESET ||
state == IBV_QPS_INIT ||
state == IBV_QPS_RTR) {
hns_roce_spin_lock(&qp->sq.hr_lock);
qp->err = EINVAL;
return;
}
Expand Down

0 comments on commit 6cc2b99

Please sign in to comment.