svn commit: r341901 - stable/11/sys/dev/mlx4/mlx4_core

Hans Petter Selasky hselasky at FreeBSD.org
Wed Dec 12 11:41:35 UTC 2018


Author: hselasky
Date: Wed Dec 12 11:41:33 2018
New Revision: 341901
URL: https://svnweb.freebsd.org/changeset/base/341901

Log:
  MFC r341543:
  mlx4: Zero initialize device capabilities to avoid use of uninitialized fields.
  
  Sponsored by:   Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c
==============================================================================
--- stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c	Wed Dec 12 11:41:28 2018	(r341900)
+++ stable/11/sys/dev/mlx4/mlx4_core/mlx4_main.c	Wed Dec 12 11:41:33 2018	(r341901)
@@ -2208,7 +2208,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
 {
 	struct mlx4_priv	  *priv = mlx4_priv(dev);
 	struct mlx4_adapter	   adapter;
-	struct mlx4_dev_cap	   dev_cap;
+	struct mlx4_dev_cap	   dev_cap = {};
 	struct mlx4_profile	   profile;
 	struct mlx4_init_hca_param init_hca;
 	u64 icm_size;


More information about the svn-src-all mailing list