Commit a5bfe6b
net/mlx5: Fix leak upon failure of rule creation
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: cefc235 ("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>1 parent ed5e83a commit a5bfe6b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1760 | 1760 | | |
1761 | 1761 | | |
1762 | 1762 | | |
| 1763 | + | |
1763 | 1764 | | |
1764 | 1765 | | |
1765 | 1766 | | |
| |||
1812 | 1813 | | |
1813 | 1814 | | |
1814 | 1815 | | |
| 1816 | + | |
| 1817 | + | |
1815 | 1818 | | |
1816 | 1819 | | |
1817 | 1820 | | |
| |||
1910 | 1913 | | |
1911 | 1914 | | |
1912 | 1915 | | |
| 1916 | + | |
| 1917 | + | |
1913 | 1918 | | |
1914 | 1919 | | |
1915 | 1920 | | |
| |||
0 commit comments