]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Move kfree() calls after destroying all resources
authorRoi Dayan <roid@nvidia.com>
Mon, 1 Nov 2021 16:13:02 +0000 (18:13 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:50 +0000 (20:31 -0800)
commitde8da1de80444270d40c715eb9716b9b62707b50
tree87a094b84506e17e1b61c53b617b4a904862cea6
parent8d946e0964ce6a78e1f1a4ff71593c101413b142
net/mlx5e: TC, Move kfree() calls after destroying all resources

When deleting fdb/nic flow rules first release all resources
and then call the kfree() calls instead of sparse them around
the function.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c