diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2021-01-20 17:41:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-10 09:25:27 +0100 |
commit | 1cef1d46add82d3edd79220465309fedc047dbd3 (patch) | |
tree | 181582e63cb00feb9783df21e194d4ef971d7eb5 /net/lapb/lapb_out.c | |
parent | 67b7f73bbe3f0b838aed1fd44ea1b94e9afca226 (diff) |
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