Skip to content

Commit 1b6e58f

Browse files
Kamalheibnmorey
authored andcommitted
Revert "mlx4: Fix overrun-buffer-arg"
[ Upstream commit 0d58020 ] This reverts commit 4d92ff7. A regression was found when testing resize_cq using pyverbs. Fixes: 4d92ff7 ("mlx4: Fix overrun-buffer-arg") Signed-off-by: Kamal Heib <[email protected]> Signed-off-by: Nicolas Morey <[email protected]>
1 parent 77027da commit 1b6e58f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

providers/mlx4/verbs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ int mlx4_resize_cq(struct ibv_cq *ibcq, int cqe)
639639
old_cqe = ibcq->cqe;
640640
cmd.buf_addr = (uintptr_t) buf.buf;
641641

642-
ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd,
643-
sizeof(cmd.ibv_cmd), &resp, sizeof(resp));
642+
ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd,
643+
&resp, sizeof resp);
644644
if (ret) {
645645
mlx4_free_buf(to_mctx(ibcq->context), &buf);
646646
goto out;

0 commit comments

Comments
 (0)