Skip to content

Commit

Permalink
Merge pull request #1559 from Kamalheib/modify_srq
Browse files Browse the repository at this point in the history
providers: Fix overrun-buffer-arg issues
  • Loading branch information
rleon authored Feb 16, 2025
2 parents dfd8417 + f140335 commit 4414a12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion providers/hfi1verbs/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ int hfi1_modify_srq(struct ibv_srq *ibsrq,
}
cmd.offset_addr = (uintptr_t) &offset;
ret = ibv_cmd_modify_srq(ibsrq, attr, attr_mask,
&cmd.ibv_cmd, sizeof cmd);
&cmd.ibv_cmd, sizeof(cmd.ibv_cmd));
if (ret) {
if (attr_mask & IBV_SRQ_MAX_WR)
pthread_spin_unlock(&srq->rq.lock);
Expand Down
2 changes: 1 addition & 1 deletion providers/ipathverbs/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ int ipath_modify_srq(struct ibv_srq *ibsrq,
}
cmd.offset_addr = (uintptr_t) &offset;
ret = ibv_cmd_modify_srq(ibsrq, attr, attr_mask,
&cmd.ibv_cmd, sizeof cmd);
&cmd.ibv_cmd, sizeof(cmd.ibv_cmd));
if (ret) {
if (attr_mask & IBV_SRQ_MAX_WR)
pthread_spin_unlock(&srq->rq.lock);
Expand Down
2 changes: 1 addition & 1 deletion providers/rxe/rxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ static int rxe_modify_srq(struct ibv_srq *ibsrq,

cmd.mmap_info_addr = (__u64)(uintptr_t) &mi;
rc = ibv_cmd_modify_srq(ibsrq, attr, attr_mask,
&cmd.ibv_cmd, sizeof(cmd));
&cmd.ibv_cmd, sizeof(cmd.ibv_cmd));
if (rc)
goto out;

Expand Down

0 comments on commit 4414a12

Please sign in to comment.