]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net/mlx5: E-Switch, Fix memory leak when creating switchdev mode FDB tables
authorRaed Salem <raeds@mellanox.com>
Tue, 21 Aug 2018 12:22:42 +0000 (15:22 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:48:21 +0000 (19:48 -0600)
commit00db83705d07999bd59a01b1c9f8fa759d76b70b
tree9dd13c1b92a2c37d5efbf7a2d35ed095c99ae4ed
parent9c11c85a6178735d1842e20faa605da3dffe4272
net/mlx5: E-Switch, Fix memory leak when creating switchdev mode FDB tables

BugLink: https://bugs.launchpad.net/bugs/1836117
[ Upstream commit c88a026e01219488e745f4f0267fd76c2bb68421 ]

The memory allocated for the slow path table flow group input structure
was not freed upon successful return, fix that.

Fixes: 1967ce6ea5c8 ("net/mlx5: E-Switch, Refactor fast path FDB table creation in switchdev mode")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c