OSDN Git Service

net/mlx5e: Tx, Zero-memset WQE info struct upon update
authorTariq Toukan <tariqt@mellanox.com>
Mon, 16 Sep 2019 14:19:12 +0000 (17:19 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:51 +0000 (12:11 -0700)
commit500f36a485862cee15752b58a5a9a50c1f59ff58
treec891e923f5a085746085fba257b8f075438b6e5c
parent0c258dec8d98af15b34dbffdb89c008b6da01ff8
net/mlx5e: Tx, Zero-memset WQE info struct upon update

Not all fields of WQE info are being written in the function,
having some leftovers from previous rounds.
Zero-memset it upon update.

Particularly, not nullifying the wi->resync_dump_frag field
will cause double free of the kTLS DUMPed frags.

Fixes: d2ead1f360e8 ("net/mlx5e: Add kTLS TX HW offload support")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h