Skip to content

Commit 47a357d

Browse files
evdenisSaeed Mahameed
authored andcommitted
net/mlx5: DR, Fix freeing in dr_create_rc_qp()
Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and should be freed with kvfree(). Fixes: 297ccce ("net/mlx5: DR, Expose an internal API to issue RDMA operations") Cc: [email protected] Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent b6e0b6b commit 47a357d

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/steering

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static struct mlx5dr_qp *dr_create_rc_qp(struct mlx5_core_dev *mdev,
179179
MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP);
180180
err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out));
181181
dr_qp->qpn = MLX5_GET(create_qp_out, out, qpn);
182-
kfree(in);
182+
kvfree(in);
183183
if (err)
184184
goto err_in;
185185
dr_qp->uar = attr->uar;

0 commit comments

Comments
 (0)