Skip to content

Commit 882b0f2

Browse files
Saeed Mahameeddavem330
authored andcommitted
net/mlx5e: Fix del vxlan port command buffer memset
memset the command buffers rather than the pointers to them. Fixes: b3f63c3 ("net/mlx5e: Add netdev support for VXLAN tunneling") Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent edbe774 commit 882b0f2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/vxlan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ static int mlx5e_vxlan_core_del_port_cmd(struct mlx5_core_dev *mdev, u16 port)
7272
u32 in[MLX5_ST_SZ_DW(delete_vxlan_udp_dport_in)];
7373
u32 out[MLX5_ST_SZ_DW(delete_vxlan_udp_dport_out)];
7474

75-
memset(&in, 0, sizeof(in));
76-
memset(&out, 0, sizeof(out));
75+
memset(in, 0, sizeof(in));
76+
memset(out, 0, sizeof(out));
7777

7878
MLX5_SET(delete_vxlan_udp_dport_in, in, opcode,
7979
MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT);

0 commit comments

Comments
 (0)