]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix possible modify header actions memory leak
authorEli Britstein <elibr@mellanox.com>
Sun, 12 May 2019 11:50:58 +0000 (11:50 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 17 May 2019 20:16:49 +0000 (13:16 -0700)
commitd7d19a4490fdcfbefaf7ab0f9db094801c1f7bd2
treeffd7189b3ba8370c8fc647bc2605ea4d1457b815
parentbac4da4d09d74702b027846c3e840d85a6569128
net/mlx5e: Fix possible modify header actions memory leak

The cited commit could disable the modify header flag, but did not free
the allocated memory for the modify header actions. Fix it.

Fixes: f67c5e4cb2c46 ("net/mlx5e: Do not rewrite fields with the same match")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c