Author: hselasky
Date: Thu May 16 16:40:47 2019
New Revision: 347785
URL: https://svnweb.freebsd.org/changeset/base/347785

Log:
  MFC r347320:
  Make sure the flow destination structure does not use values off the stack
  in mlx5en(4).
  
  Sponsored by: Mellanox Technologies

Modified:
  stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c Thu May 16 16:40:12 
2019        (r347784)
+++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c Thu May 16 16:40:47 
2019        (r347785)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to