net/mlx5: Fix memory leak when setting fpga ipsec caps
authorTalat Batheesh <talatb@mellanox.com>
Thu, 30 Aug 2018 13:31:52 +0000 (16:31 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Oct 2018 01:26:15 +0000 (18:26 -0700)
commitfd7e848077c1a466b9187537adce16658f7cb94b
treee16681deed1f5d8b201fb9f073e61926e011fafd
parent52b5d6f5dcf0e5201392f7d417148ccb537dbf6f
net/mlx5: Fix memory leak when setting fpga ipsec caps

Allocated memory for context should be freed once
finished working with it.

Fixes: d6c4f0298cec ("net/mlx5: Refactor accel IPSec code")
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c