[PATCH] net/mlx5: fix thread workspace memory leak
Dong Zhou
dongzhou at nvidia.com
Thu Oct 13 11:34:02 CEST 2022
The thread workspace push/pop should be paired. In the "flow_list_create"
routine, if error happened the workspace pop was missed. This patch shares
the workspace pop for all return paths.
Fixes: 0064bf431899 ("net/mlx5: fix nested flow creation")
Cc: xuemingl at nvidia.com
Cc: stable at dpdk.org
Signed-off-by: Dong Zhou <dongzhou at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
---
drivers/net/mlx5/mlx5_flow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index e4744b0..6fb1d53 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -7028,8 +7028,8 @@ struct mlx5_list_entry *
rte_errno = ret; /* Restore rte_errno. */
ret = rte_errno;
rte_errno = ret;
- mlx5_flow_pop_thread_workspace();
error_before_hairpin_split:
+ mlx5_flow_pop_thread_workspace();
rte_free(translated_actions);
return 0;
}
--
1.8.3.1
More information about the stable
mailing list