]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Fix leak on resync error flow
authorSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Sep 2020 04:16:04 +0000 (21:16 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:24 +0000 (17:22 -0700)
commit929c08b6323d7df0441b2876b3579ebf80d27296
treec5dbbd05af4a3d379e9f0bbcc2987c4bd957fd07
parent17e08bf34e1e89da4aca67a483f568d43b3f4481
net/mlx5e: kTLS, Fix leak on resync error flow

Resync progress params buffer and dma weren't released on error,
Add missing error unwinding for resync_post_get_progress_params().

Fixes: d92bf3a50da0 ("net/mlx5e: kTLS, Add kTLS RX resync support")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c