Message ID | 20231214012505.42666-7-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | e75efc6466ae289e599fb12a5a86545dff245c65 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,01/15] Revert "net/mlx5e: fix double free of encap_header in update funcs" | expand |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c b/drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c index be83ad9db82a..e1283531e0b8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c @@ -154,6 +154,7 @@ static int fs_udp_create_groups(struct mlx5e_flow_table *ft, enum fs_udp_type ty in = kvzalloc(inlen, GFP_KERNEL); if (!in || !ft->g) { kfree(ft->g); + ft->g = NULL; kvfree(in); return -ENOMEM; }