]> git.baikalelectronics.ru Git - 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)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Sep 2018 00:08:33 +0000 (17:08 -0700)
commit53eed144ae6d5879cce538037f87e680fc2e6842
treeeed8b8d60e0fbab31733671962aa23f049ff4763
parentb8fff08bd23a4b8aee6b416df4167d05f780680f
net/mlx5: E-Switch, Fix memory leak when creating switchdev mode FDB tables

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

Fixes: 574a0ceaf98e ("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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c