mirror of
https://github.com/opnsense/src.git
synced 2026-03-01 04:40:53 -05:00
Make sure the flow destination structure does not use values off the stack
in mlx5en(4). MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a0a4fd7734
commit
47d93c5c43
1 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ mlx5e_add_eth_addr_rule_sub(struct mlx5e_priv *priv,
|
|||
struct mlx5e_eth_addr_info *ai, int type,
|
||||
u32 *mc, u32 *mv)
|
||||
{
|
||||
struct mlx5_flow_destination dest;
|
||||
struct mlx5_flow_destination dest = {};
|
||||
u8 mc_enable = 0;
|
||||
struct mlx5_flow_rule **rule_p;
|
||||
struct mlx5_flow_table *ft = priv->fts.main.t;
|
||||
|
|
@ -507,7 +507,7 @@ mlx5e_add_vlan_rule_sub(struct mlx5e_priv *priv,
|
|||
u32 *mc, u32 *mv)
|
||||
{
|
||||
struct mlx5_flow_table *ft = priv->fts.vlan.t;
|
||||
struct mlx5_flow_destination dest;
|
||||
struct mlx5_flow_destination dest = {};
|
||||
u8 mc_enable = 0;
|
||||
struct mlx5_flow_rule **rule_p;
|
||||
int err = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue