diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2021-01-20 18:41:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-10 11:29:14 +0300 |
commit | 11c2c8fb889d6ee61f268810175818d05ae0323b (patch) | |
tree | 8e2fecc721ccb6cac42fcf186f8b00dd2af53c6c /net/lapb/lapb_out.c | |
parent | ada342012b2d703d3e409103f11f817b47ab56e5 (diff) | |
download | linux-11c2c8fb889d6ee61f268810175818d05ae0323b.tar.xz |
net/mlx5: Fix leak upon failure of rule creation
[ Upstream commit a5bfe6b4675e0eefbd9418055b5cc6e89af27eb4 ]
When creation of a new rule that requires allocation of an FTE fails,
need to call to tree_put_node on the FTE in order to release its'
resource.
Fixes: cefc23554fc2 ("net/mlx5: Fix FTE cleanup")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Alaa Hleihel <alaa@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions