Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 18:25:26 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347876 - stable/11/sys/dev/mlx5/mlx5_en
Message-ID:  <201905161825.x4GIPQRx040682@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 16 18:25:26 2019
New Revision: 347876
URL: https://svnweb.freebsd.org/changeset/base/347876

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/11/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c	Thu May 16 18:24:51 2019	(r347875)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c	Thu May 16 18:25:26 2019	(r347876)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905161825.x4GIPQRx040682>